• Resolved Banjoo

    (@ozarc)


    Before leaving a review, id like you to reply for a solution.

    I installed the plugin and uploaded some images to a local test. All worked fine, the images were converted to webP.

    However the images loose their color profile, and as im looking to use this for a photography site, this simply isn’t usable as color accuracy is vital.

    I then downloaded the webp plugin for PS https://github.com/webmproject/WebPShop/releases to run some tests.

    Taking the same original jpeg image, saved as 12 quality (best) that i ran though your plugin, i then saved it as 80% quality (same as your recommended setting in your plugin), both with “Keep Color Profile” on and off:

    – Original Jpeg: 704KB
    – Your Plugin conversion: 86.7KB
    – PS WebP at 80% with Color Profile OFF: 79.8KB
    – PS WebP at 80% with Color Profile ON: 80.4KB

    As you can see the PS versions, both with and without color, are smaller than yours, but im not to phased about that, as my main point here is that even with the Color Profile on, the PS version is able to match the size of both the OFF and your plugin, so there is no negligible hit in file size.

    in other words, why no add it as an option in your plugin and there is no downside and increases color accuracy of images?

    Then just for fun, I see you also support AVIF in your pro version, so also downloaded to PS plugin for that https://github.com/0xC0000054/avif-format/releases

    – PS AVIF at 80% with Color Profile ON: 81.7KB

    The compression quality was better (sharper) than WebP, while keeping the same file size, so it is definitely a better algorithm. But again, I assume that you too don’t support color profile in you plugin, so again this makes it useless for anyone who cares about color accuracy in their websites images.

    Conclusion

    Are you able to add Color profiles to both compression formats?

    Id really like to use your plugin, as it more automated and thus convenient than individually saving webp or AFVI files through PS, but without a color profile, it simply isnt usable.

    Thanks

    • This topic was modified 3 years, 1 month ago by Banjoo.
    • This topic was modified 3 years, 1 month ago by Banjoo.
Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @ozarc,

    Thanks for your message.

    I will try to help you. You must know that I create a plugin for people and I try to meet their expectations.

    Can you please send me some sample files before converting so I can check it? I will also need your color profile in ICC format.

    Best,
    Mateusz

    Thread Starter Banjoo

    (@ozarc)

    Thanks for the quick reply

    Sure here are the 5 images:

    Original Jpeg
    Webp Color on & OFF
    AFVI Color On
    Image converted by your plugin and saved

    https://drive.google.com/drive/folders/1rbNzaVlR_kegVOFwjeVlIzgrBajAUlOd?usp=sharing

    Thread Starter Banjoo

    (@ozarc)

    As you can see the orange of the knife and the green of the plants are way more de-saturated after being processed by your plugin or when color profile is set to off when saving from PS.

    Thread Starter Banjoo

    (@ozarc)

    Also added an image “Keep Color Profile.jpg” which is what you will see if you have either of these plugins install in PS when saving.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ozarc What settings in the plugin do you use? Could you send me a screenshot?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ozarc I will also need your color profile in ICC format.

    Thread Starter Banjoo

    (@ozarc)

    See the settings at 80%, slowest and Keep Color Profile, as per the “Keep Color Profile.jpg” in the drive folder

    Adobe RGB out of PS.

    But that shouldn’t matter as you you shoudl just be able to save the current profile, as per when when saving in PS

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ozarc So far, I have had one report on this matter. You must remember that the plug is a universal tool. It is not possible to add all the functionalities to the plug, as it would become too big and burden the server.

    Using ICC requires the plugin user to provide an ICC file with a color profile. Each graphics program can have a different setting.

    What does “Keep Color Profile” mean? How do I know what color profile is it? There may be different settings for each program – each user of even the same program may have different settings.

    Please tell me how would I handle it?

    I also did a little test – without active my WebP plugin. I added such a file to the Media Library. WordPress generated several image sizes from it. And the color loss problem is the same. Why? Because WordPress doesn’t know the color profile you have set.

    Please read this:
    https://drive.google.com/drive/folders/1FoIeHcdzUGelt0pyQlI-z5p3LSKluKNP

    In this situation, it doesn’t really make sense that I add ICC support, because WordPress doesn’t understand ICC either, and the image sizes generated by WordPress won’t work properly either.

    In my opinion, the best solution is to export files to sRGB when you save them in a graphics program. It’s a universal format that any tool can understand.

    What do you think?

    Thread Starter Banjoo

    (@ozarc)

    But the ICC is stored in the meta data of every image, so therefore WordPress can read it, just like Photoshop can.

    Your plugin strips the meta data the exact same way as the two PS plugins do (unless you tell it not to when saving).

    Therefore your plugin should be able to also save the ICC as well.

    https://drive.google.com/drive/folders/1ejBycTkXQQ-7GoB3kGT-q-NxEeg7kuPr?usp=sharing

    • This reply was modified 3 years, 1 month ago by Banjoo.
    Thread Starter Banjoo

    (@ozarc)

    the “Keep Color Profile.jpg” shows that the ICC is under the meta data, together with EXIF and XMP.

    Thread Starter Banjoo

    (@ozarc)

    I turned on your plugin setting “Keep images metadata stored in EXIF or XMP formats (unavailable for GD conversion method)” to see if maybe the color profile is in there and regenerated all images again

    But unfortunately it doesnt seem so.

    However, wouldn’t adding the color profile as another option below this then also be possible if it also part of the meta data?

    Thread Starter Banjoo

    (@ozarc)

    OK so I also found a error with the plugin and the “Keep images metadata stored in EXIF or XMP formats (unavailable for GD conversion method)” setting

    Check these two images https://drive.google.com/drive/folders/1Nj-xDQY4Cq8H9NbUx9lGUbatD4v2ACoF?usp=sharing :

    – The “From Photoshop saved with ALL METADATA.jpg” show the webP file saved from PS with all three META data options (EXIF XMP & ICC) turned on> As you can see, Bridge is able to see all the metadata, the same as the original Jpg, meaning that it properly preserved the meta data within the webp image, as it also grew to 105KB from 87KB.

    – The “From PLugin saved with ALL METADATA.jpg” is the image that your plugin generated with the “Keep images metadata stored in EXIF or XMP formats (unavailable for GD conversion method)” setting turned ON. As you can see in Bridge, all the metadata was stripped regardless, meaning this setting isn’t working as intended. It also remains at the same file size which is impossible if the meta data is included.

    This could also be the reason that the ICC is being stripped out as well even when this setting is turned on.

    • This reply was modified 3 years, 1 month ago by Banjoo.
    • This reply was modified 3 years, 1 month ago by Banjoo.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ozarc The Gd library cannot handle ICC profiles. However, in the case of the Imagick library, it is possible. To do this, activate the “Keep images metadata stored in EXIF or XMP formats” option and then convert all images using the “Force convert all images again” option.

    Realizes this may be unclear. Therefore, I have prepared a patch to the plugin that will enable the correct handling of the ICC profile.

    You can download it here:
    https://mattplugins.com/files/webp-converter-for-media.4.2.2-beta1.zip

    Does this solve your problem?

    Thread Starter Banjoo

    (@ozarc)

    Thanks, i tried it but unfortunately not, as you haven’t addressed the fact that the “Keep images metadata stored in EXIF or XMP formats” setting doesn’t actually work properly as per my above post. I am using Imagick.

    So if its not even storing the EXIF or XMP, meta data it cannot possibly store the ICC either.

    Check my post above as i think you missed it.

    Thanks

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @ozarc I did a test with your image on the old version of the plugin and in fact the orange color changed its shade. After my change in the plugin, the orange color keeps its shade.

    The “Keep images metadata stored in EXIF or XMP formats” option does not matter here – now the ICC profile is never deleted, regardless of the selected option.

    Can you explain again what you think still doesn’t work in the plugin?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Plugin Doesnt Store Color Profile’ is closed to new replies.