Not an IH4 issue (otherwise others would report this issue..) This probably is an image naming issue and there is a section of the readme that points in the right direct to fix it.
Printable View
sorted png and jpg not allowed
couldn't figure out why additional items were coming up RED in the admin and could see the problem in the instructions. Found the solution on a different website and then found the LIMITATIONS of IH4 in the instructions.
How does the background color work. For my small images, I selected the settings of "png" and background color of "'-transparent-". But its still rendering as white. I wanted to make it match the odd and even rows of the product listing page like the IH4 example shows. Currently all my images are jpg. If I understand correctly, imagemagick would convert them on the fly to png? Or would I have to initially made my pictures with png transparent backgrounds as the default images and then it would work. If that is the case I will live with a white background on all images as it would be tedious to get them converted to pngs.
Read it again. I know that Imagemagick can convert jpg images to png transparency with scripts. But I don't know if image handler has that functionality to make use of imagemagick scripts. Is their a place I can add scripts inside the files to convert the jpgs background to transparency. This seems the only way I can use the background color settings.
This is what I tested this morning.
1) I have 2 pictures, 1 in jpg with white background and 1 in png with alpha transparency
2) Uploaded each of them to separate product listings
3) Changed settings in IH4 to use 255:0:0 (red) background color and use filetype png
4) On viewing the catalog side, only the product with the default png image shows a red background. But the default jpg (png IH4 converted) still has the white background.
When viewing the image source, it does show that the jpg was converted to a png in the bmz cache folder.
So basically what I am asking does IH4 only change the filetype? And what I suspect is that IH4 does not make use of scripts to convert backgrounds to alpha transparent. The readme does not cover this as it gives examples of uploading a jpg in the above example and using other filetypes for resize images. And then moves to the topic of background colors. Unless it is to be assumed that you have to start with a gif or png with a transparent background then I understand how it is covered in the readme.
From the readme
"If you want to keep the transparency of an uploaded image, you need to set the background color value to transparent."
This implies to me that you need to have a transparent background to start with.
Having used various photo tools to remove backgrounds and then clean up what is left manually.
I doubt there is a photo tool that can do this automagically and give a satisfactory result.
So I cannot see that IH would be set up or able to do this either.
true.. However, your original question didn't give me any indication what you were asking after either.. (it was a bit broad.. hence why I pushed you back to the readme..)
Exactly.. IH4 can convert filetype (JPG --> PNG), but adding a transparent background to a converted image?? No.. IH4 doesn't do this.. To see the background color, start with an image with a transparent background and the background color in the settings will show through..