Product Image 'tint'

  • Posts: 161
  • Thank you received: 4
9 years 1 month ago #245366

-- HikaShop version -- : Essentials
-- Error-message(debug-mod must be tuned on) -- : none

Hi, is there an overlay on product images ?
on some products (mostly silver) I am getting a brown 'tint' on the images and I can't see why,
if you click on the image, the popup image displays correctly, yet its the same image ?

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 1 month ago #245374

Hello,
Can you test it with one of the default Joomla template ? If that solve your issue, then it means that your issue is coming from your template CSS file.

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
9 years 1 month ago #245465

Hi, I contact the template designers, and they replied with the following.

"Hello.
I've checked, however it's the thumbnail generated by Hikashop that's changing the color, [website].com/****lab/media/com_hikashop/upload/thumbnails/300x300f/eleaf_10wmini.jpg
Here is the original, [website].com/****lab/media/com_hikashop/upload/eleaf_10wmini.jpg.

I've also checked my own copy however that does not happen to me, so it's most likely some kind of configuration or maybe bug with hikashop.

Regards."

does that help ?

Please Log in or Create an account to join the conversation.

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
9 years 1 month ago #245482

Hi,

The problem is related to the colorimetry of your original image.
When you open the original image with a simple image software ; you see it "brown" instead of "silver".
So PHP GD, will open it exactly like that.
Your problem is not related to HikaShop.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
9 years 1 month ago #245508

Hi Jerome,

sorry but that is absolutely incorrect, its not about 1 image,

several images from different sources suffer the exact same effect,
some are from manufacturers websites (where they look fine),
some are from a camera and the originals in photoshop look fine,
some are purchased from stock photo websites.

All of the original images can be viewed in any editor and they look fine.
the images NOT processed by hikashop are fine.

and to point out, it is only the silver on all of the images that is effected,
the easiest work-around is to replace the thumbnail image that hikashop creates with a copy of the original.

?

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #245536

@phiddius:

Hi,

Jerome is right: there's nothing in HikaShop's code or in PHP GD which causes this. (Otherwise, with PHP GD being a widely used library, a huge number of websites would suffer from a similar effect.)

Double-check the color profiles of your original images, something is likely to be odd there.

Also, just as an example, here is another thread which started similar to yours, and it also led to the color profiles of the original images: www.hikashop.com/forum/install-update/88...original-colors.html


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
9 years 1 month ago #245581

Hi Lousyfool,
I was asking for assistance - knowledge of the issue, Jerome suggested it was my image (as in 1 image)
but there are several images from different sources, including a manufacturers website.
ALL images display correctly, until they are processed by Hikashop, then they become incorrect, and so it has to be something there.

I have looked into it, and Hikashop is not directly responsible for the image colour change, however PHP GD actually is, and so GD being so widely used etc a lot of people do suffer with this problem.

It strips colour profiles, and it would seem that it doesnt like particular colours such as pink or silver.
GD does not support color profiles and strips them if you do resize or other operations.

Ive got a work around now, a bit fiddley, but by replacing all the converted images via ftp with versions of the originals resized in photoshop they display correctly. So I'm fine.

If this is any use or help to anyone else here then take a look:
PHP FORUM: https://bugs.php.net/bug.php?id=53598
and this:
Stack Overflow Stop GD washing images

https://wordpress.org/support/topic/wp-messing-up-header-picture-colors

that explains the inconsistency of the error, and why the images display normally if not processed.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #245582

This is not the forum to discuss this more in detail because, as you're confirming, it's not HikaShop being directly responsible - and neither indirectly.

All three threads from other forums you're referring to are showing that "proprietary" color profiles in the original images, such as Adobe RGB, are the reason for the trouble you're experiencing.

As real help this brief article should do, as well as explain why you need to prepare (some) images for use on the web, and give you more detailed information in the links at the end: om4.com.au/client/preparing-images-color...iles-srgb-adobe-rgb/

It might then also help to understand that PHP GD isn't intended, and doesn't claim, to be some "automatic Photoshop or image fixer" or so no matter what you provide as source, but merely a handy code tool for basic processes such as scaling and cropping.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #245586

@phiddius:

You've just sent me the following PM:

well Im not sure if you're trying to help me or just prove me wrong, but I wont enter into a forum cat fight, there is no warning that GD is used, nor that sRGB images can be changed, I found out the hard way and asked for help, you are not helping, so just leave it.


You've reported a problem, asked questions, and had responses including explanations, first from Jerome, then myself. If it helped you or not, it was certainly intended to do so.
However, you kept insisting on HikaShop's involvement. So then, most recently I tried to point out that other sources you were linking to basically only confirm previous explanations here, and gave you a link for background info on color profiles and web, and image preparation for web.

Sorry if you found none of this helpful. I will indeed leave it there then.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
9 years 1 month ago #245604

Hi,

@phiddius - like I mentioned in my first answer, the problem is related to the color profile (or "colorimetry") of the image.
PHP GD does not support it and it is currently not in the PHP TODO list. If GD do not handle it, we cannot fix the issue in our side.
It can be seen as a "bug" or as a "missing feature".
That's why the problem you have can be found in a lot of different sites, for different web softwares.
GD is the most used image processing lib in PHP.

Now, we know that Image Magick support the color profile but Image Magick is available in few servers (regarding the statistics).
php.net/manual/en/book.imagick.php
While GD is now almost installed by default, "imagick" is still an add-on which has to be installed or activate manually for most web hosting.

Maybe we will introduce a support of Image Magick in HikaShop ; but I have to be honest, it is currently not in our top priorities for development because the image processing with GD is working fine except for the support of color profiles (a problem not very common ; first report here was one month ago in the other thread).

Like lousyfool explained and like Nicolas wrote in the other thread : The current solution is to open the images in your computer (with a image software like "Gimp" or "Photoshop"), to change the color profile to the web standard one (sRBG) and then export the image as Jpeg.
Unfortunately, for the moment that is the only solution that we can provide you.

@lousyfool - thanks for the help and the link on the first topic which talked about the color profile.
I was there when we find the issue with Nicolas but I didn't kept a track of that topic.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: lousyfool

Please Log in or Create an account to join the conversation.

  • Posts: 161
  • Thank you received: 4
9 years 1 month ago #245969

ok thank you Jerome for your clarity,

my problem was with some images supplied by a Large International Supplier Innokin who supplied us with images of their goods and we are not allowed to alter them nor reproduce them in any way, and they did not understand my request to change as they look fine on their site, I have forwarded your explanation to them so maybe I'll get permission to do it.

thanks anyway

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum