Hi Mr Papa, thanks for your reply.
ICC profiles are embedded into image files to make sure the colours in an image look the same on my screen compared to if you viewed the same image on your screen.
sRGB is the standard profile for viewing online. You can see what profile (if any) an image file has embedded by viewing its exif data.
This is a handy website for checking the exif data to see what profile any given image has:
http://exif.regex.info/exif.cgi
Here’s a blog post that explains the importance of this better than I can:
http://regex.info/blog/photo-tech/color-spaces-page1
I have tested on my forum and all images I upload have their exif data and icc profile stripped.
When I upload the same file through the wordpress media uploader, the exif and icc remain in tact. If you’d like to see the difference first hand, you can enter these examples into the above exif viewer page:
Uploaded via wordpress: https://photomasteryclub.com/wp-content/uploads/2018/02/coalcliffskyswap.jpeg
Uploaded via SP file uploader: https://photomasteryclub.com/wp-content/sp-resources/forum-file-uploads/stevea/2018/02/coalcliffskyswap.jpeg
See the Basic Image Information section for each.
I’ve experienced a similar issue in the past when coding a php uploader (years ago, I’ve since forgotten most of what I knew about PHP). The issue was that when I loaded an image files data into a variable and then re-saved that data as a new image file, exif data and ICC profiles didn’t carry across to the new file. The solution was to read the exif and ICC data from the original file, and then manually (in the code) put that data back into the new file.
Or, just upload the file and any moving, renaming etc was done to the original file itself, rather than load it into PHP and save it again as a new file.
I’ve tested as many combinations of plugin settings as I can think of to make sure the image isn’t being processed or having anything done to it, but it’s still losing the exif and ICC. I even tried making JPEG an “other” file type to see if the uploader handled it differently, but it produces the same issue.
Wether you can potentially help or not will depend on whether its the pupload code that’s doing it, or if its the simple-press code thats doing it after pupload has uploaded the file in tact.
Thanks for looking into this for me, I appreciate it’s potentially a big thing to land on your desk!
Cheers