Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
File Uploader: Strips ICC profile from images
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 9, 2018 - 2:33 am

will have to see if @yellow-swordfish had a chance to run any tests...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 9, 2018 - 5:07 am

It looks like the culprit is probably the php 'GD' library which handles any resizing that may be needed. This is not definite but seems likely from my reading to date.

You should be able to test this theory by removing the maximum width, height and filesize in the uploader options and uploading a fairly small image file with the ICC intact. I believe this should remove any GD processing of the core image. @mr-papa - can you confirm this?

Let us know if this behaves. The trouble is I am unsure whether the GD library has been changed to accommodate this in latest versions - it can be quite difficult sometimes to find definitive answers - but I am still searching.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 12, 2018 - 2:57 am

yes, but OP claims to have done that...   perhaps I am missing something, but all that should happen if the file needs no processing is a simple php move/copy function...

Avatar
Steve Arnold
Member
sp_UserOfflineSmall Offline
Apr 15, 2018 - 1:26 am

Hey guys, just checking in to see if you have any further insights into this issue.

I've tested intensively and can conclude that even when there are no restrictions on file size/dimensions etc, it is being "processed" and the EXIF info is being stripped. I'm pretty sure there's also some compression happening too because the file size becomes smaller once uploaded. 

Cheers

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 16, 2018 - 4:09 am

As I am not too knowledgeable about this can you tell me exactly what tools you are using to determine the change and loss of data so I can also run some tests?

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607