Product image problems

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Product image problems

Paul Cullum
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


Reply | Threaded
Open this post in threaded view
|

Re: Product image problems

Paul Cullum
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
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Product image problems

BJ Freeman
not sure what your asking.
you use the original size then the software re-sizes the images.
https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductContent?productId=dropShip1
which of the re-sized images is hard coded in the widgets.
but view source of a page you can see what widget is being used and see
what image size is used. By image size I mean by label not actual sizes.

Paul Cullum sent the following on 12/16/2010 5:07 PM:

> 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
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Product image problems

Anne Jessel
In reply to this post by Paul Cullum
On 17 December 2010 12:07, Paul Cullum <[hidden email]> wrote:
...
>
>   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?
>

Not sure this if this is what you mean, but...

In the Content tab for the product, you can add an image in the
Override Simple Fields section. This is the one normally displayed
when there's only room for one image.

You can add extra images further down the same screen, under Add
Additional Images. These are displayed when viewing the product (i.e.
not a catalog) in ecommerce.

If you need different behaviour, you may need to alter the relevant .ftl file.

Cheers,
Anne.

--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/