Well... with a bit more experimenting I answered almost all of my own
questions.
1. GIF resizing doesn't seem to deal properly with transparency.
2. Still not sure if there is an ideal size but given the answer for
number 4 and whatever the answer for number 3 happens to be it may not
really matter.
3. I'm still not sure how to pick the image size to be used for the
products shown in the catalog.
4. Sized are defined here... I'm not sure how I missed
this:{ofbiz.home}/applications/product/config/ImageProperties.xml
5. (or the second number 4) PNGs seem to work. In fact they work better
than GIFs since transparency is respected when resizing.
Having gone through the bunch I'll make a point of stating that if you
could only answer one question it would be great if it were number 3:
3. Is there a way to pick which image is used for each product (on a
per product basis) when displaying the catalog or the product info
pages?
Thanks,
Paul
On 10-12-16 02:41 PM, Paul Cullum wrote:
I've only just installed OFBiz for the first time so hopefully I'm not
asking question that have already been asked. I couldn't find any
related issues and nothing came out of my feeble attempt to search the
archive.
In my testing I added a product to a catalog, then on the product
content page I uploaded an image. When I opened the main page of the
ecommerce app which shows the catalog containing the product, the
image looked unrecognizable. When I clicked into product info page it
showed a recognizable image but the image background was black.
My questions are:
1. Are transparent GIFs supported? I uploaded a GIF with a transparent
background but when I load the images directly by their URLs it
appears that the resized images all have a black background so it
appears that transparency isn't handled well. It looks terrible if
the item happens to be black.
2. Is there an optimal image size or ratio for uploading? The image
I uploaded was a picture of a downhill ski that was much wider than it
was tall (2496x214). I also tried an image that was 1/4 in size
(599x51). The image that appears on the catalog page was still
unrecognizable. The image (apparently the "small" image) on this page
was 50x4 but it was stretched to 625x50 (due to the smallimage class
height of 50px). I suppose that this is something that can be
addressed through editing the CSS.
3. Is there a way to pick which image is used for each product (on a
per product basis) when displaying the catalog or the product info pages?
4. Is there a way to configure what the image dimensions should be for
the different image sizes? For example, if one decided that small
should be 75px instead of 50px in width.
4. Are PNG images supported? (And with transparency?)
Thanks in advance,
Paul