Announcement

#1 2021-08-10 17:35:42

davidpwhelan
Member
2021-08-10
3

Image Downloads Cause "Paint cannot read this file" Error

I believe this issue has been posted before but the solutions did not work for me.  It is a new problem for me on 11.5; downloads worked fine before.  I have disabled all plugins and FTP'd the latest version from a downloaded ZIP and selected "overwrite" in Filezilla on the upload.  Tools>Maintenance is showing Piwigo 11.5, PHP 7.4.22.

Downloaded images will only open in some image editors  (Microsoft Paint, Microsoft Photo = No; GIMP = Yes).  Windows gives an error with Paint that says "Paint cannot read this file. This is not a valid bitmap file, or its format is not currently supported."

I attempted this solution (create /local/config/config.inc.php with recommended code) https://piwigo.org/forum/viewtopic.php? … 80#p179280 but it did not fix the file download problem. 

I also looked at /action.php to make sure my copy had the other fix mentioned in the previous posting [Github] Piwigo commit db65aa51 and it does.

I don't see any errors under /_data/logs/todays date at a time when I download a file.

If anyone has any suggestions, I'd appreciate the help.  It's obviously minor and I can work around it but it'd be nice if people who download photos can open them with whatever they have set as default. 

Thanks.

Offline

 

#2 2021-08-10 18:59:37

Katryne
Member
2016-12-03
187

Re: Image Downloads Cause "Paint cannot read this file" Error

Hello !
Can you give us a link to a picture you cannot open ? I tried one of mine on Windows 10 and was able to open it with a dozen different apps ans software, including Paint.


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#3 2021-08-10 19:03:00

davidpwhelan
Member
2021-08-10
3

Re: Image Downloads Cause "Paint cannot read this file" Error

Here's one: https://ofaolain.com/stockphotos/picture.php?/2933/

But it appears to be universal.   Thanks for checking.

Offline

 

#4 2021-08-10 19:18:09

Katryne
Member
2016-12-03
187

Re: Image Downloads Cause "Paint cannot read this file" Error

For your file, same as you : cannot open with Paint. Difference between my file and yours is that your file is .jpeg and mine .jpg. It should come from the format you are using. All my files on my Piwigos are either .jpg or .png. I never use .jpeg.
I do not know the real difference between them. Maybe someone will tell you.

Last edited by Katryne (2021-08-10 19:18:54)


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#5 2021-08-10 19:26:28

davidpwhelan
Member
2021-08-10
3

Re: Image Downloads Cause "Paint cannot read this file" Error

Thanks for taking a look.  I wondered about that too.  I didn't mess with the origin file but renamed the downloaded one (in case Windows preferred jpg over jpeg).  And I have a mixture (here's one that's a jpg: https://ofaolain.com/stockphotos/picture.php?/2245 ) and it doesn't seem to matter the extension, but I'm glad it's not just me! Thanks again.

Offline

 

#6 2021-08-10 19:34:22

Katryne
Member
2016-12-03
187

Re: Image Downloads Cause "Paint cannot read this file" Error

Renaming the file is not enough. If you wand some .jpg files, you should use a converting soft ware, such as Photofiltre. Or Xnview for mass conversions.


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#7 2021-08-10 19:41:23

Katryne
Member
2016-12-03
187

Re: Image Downloads Cause "Paint cannot read this file" Error

By the way, there is a script on your page that cannot be read and your page. I do not know what it is, but I have to stop it to be able to go on. It says :

Un script sur cette page est peut-être occupé ou ne répond plus. Vous pouvez arrêter le script maintenant, l’ouvrir dans le débogueur ou le laisser continuer.
Script : https://ofaolain.com/stockphotos/_data/ … cyo5r.js:5


https://photos.revestou.fr/  v.12.2 - https://dardennes.revestou.fr/ v.11.5 - http://photos.katrynou.fr/ v.11.5 https://album.chauvigne.info/ v.12.2
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 7.4.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#8 2021-08-10 20:58:46

erAck
Only trying to help
2015-09-06
1414

Re: Image Downloads Cause "Paint cannot read this file" Error

Your server (or rather cloudflare) sends a gzip compressed file instead of the original and announced image/jpeg file. That of course does not work.

If the downloaded file is renamed appending .gz like to image.jpeg.gz and then executing
gzip -d image.jpeg.gz
the resulting image.jpeg is a valid JPEG file.

GIMP is just superior in recognizing and handling the gzip compression transparently.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact