Sackgesicht VIP
Total posts: 1,636
26 Feb 2013 21:15

When uploading images through the gallery field, the original image gets altered.

Assuming i will upload an image with file dimension 1200 x 767 (file size 100kb) and my upload parameters are like this:

I would presume, that my pictures will not be processed. Unfortunately they will be. They become 1200 x 767 (260KB) .. so the file size increases by 1.5 times and actually there is a visible loss of quality.

Even worse, all the original picture information like TIFF info and EXIF info is erased, that should never be the case.

If the original gets processed (original has bigger dimensions than field parameters), let the user of this field define the quality factor and dont change the embedded image info.

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
26 Feb 2013 22:37

dont change the embedded image info

Unfortunately we do no have control over it. If it is processed then info is erased. We use PHP GD2 library. And this how it works. I am not sure if we can influence it.


Sergey
Total posts: 13,748
26 Feb 2013 22:40

I found some library.. We will try to solve all these issues.


Sackgesicht VIP
Total posts: 1,636
26 Feb 2013 22:54

If the uploaded picture is not bigger than the parameters in the original setting, it should not even change/process it.

If you need a better description of the error or anything else i can be of help, let me know


Sergey
Total posts: 13,748
26 Feb 2013 23:41

No it is ok. I understand the problem.


Sackgesicht VIP
Total posts: 1,636
28 Feb 2013 20:41

If there is too much trouble with another library, a quick fix could solve most of it already.

If the picture is within the original size parameter, dont process it at upload time.

This will ensure, that exactly the original file is uploaded as expected and no meta info is lost.

Anyway, we have the display parameters for different sizes, and download will use the original file.


Sergey
Total posts: 13,748
01 Mar 2013 01:27

Fixed.


Sackgesicht VIP
Total posts: 1,636
01 Mar 2013 04:15

just uploaded some pictures .. they were not processed and the EXIF info is still there ... Right on time , have to upload tomorrow 800 pictures ...

Thanks for addressing this behaviour. :D

Powered by Cobalt