View Full Version : Different Product Image size !!!!
pricera.co.uk
03-05-07, 06:20
Hello,
Web services are returning tree image URLs: sAwThumbUrl, sAwImageUrl and merchant image URL. In many cases images have different sizes from product to product. Image scaled in browser will not look good. Can somebody give me an idea how to display product images and preserve image quality and page professional look? www.shopwindow.com is displaying images in one size and they looks good. Any idea how to accomplish this?
I was hopping that AW images will all be the same size but looks like this not the case.
Thanks for your help,
Daniel
www.pricera.co.uk
Hi Daniel,
You can use PHP to manipulate images prior to them being rendered to the screen, including resampling, compositing and incorporating text. You will need to have the GD library included in your PHP installation to use the image functions. Take a look here (http://uk.php.net/gd)for more information.
pricera.co.uk
03-05-07, 14:28
Hi Steve,
Thanks for your advice. Forgot to mention that we are using .NET. ;-)
Thanks,
Daniel D.
Fair enough. I have no clue about .NET, does it not have an equivalent graphics library?
pricera.co.uk
03-05-07, 16:44
You are saying that we will not find images with the “fixed” size across all categories/merchants/products and will need to scale image using resources we have. Right?
Thanks for the help.
Thanks,
Daniel D.
Yup. At least, that's what I do. When I first started developing my site I switched between the AW and merchant images and found no consistency with either of them. Images came in at anywhere between 20x20 upto 1600x1200! I use a PHP script to pull in the AW images and resample them to my required size. This also has the benefit of being able to handle noimage.gif and broken links.
I don't know how you'd go about this with .net though.
pricera.co.uk
03-05-07, 20:55
Hi Steve,
My concern is the extra server processing and bandwidth use associated with this approach verses just placing images on the page. I guess we don’t have a choice.
Do you mind sharing your site name? Just interesting to see example of AW Web Service in action.
Anyway, Thanks a lot.
Thanks,
Daniel D.
Server processing can be minimised by caching the resampled images however this does require significant server space and bandwidth even with small images given the number of products available via ShopWindow. The pay off is much better control over the size and style of images and therefore a neater site design. It's a solution that I'm happy with but may not be for everyone. I don't expect datafeed images to meet a specification any time soon, if ever.
My site is currently being tested and tweaked. I'll post in the My Shop thread when it goes live. Good luck with your site.
pricera.co.uk
04-05-07, 18:29
Thanks. FYI. We are planning to lunch limited beta on May 12.
If you haven't found an image resizer already, I have successfully used AutoImageSize http://www.unitedbinary.com/AutoImageSize.aspx in the past on Windows based systems.
pricera.co.uk
15-05-07, 04:39
Thanks a lot for the tip!
pricera.co.uk
25-05-07, 19:06
Hi,
As mentioned above. We have lunched limited beta www.pricera.co.uk. You feedback would be appreciated. More to come !!!!
Best Regards,
Daniel D.
Price you have been looking for ..
US: www.pricera.com
UK: www.pricera.co.uk
Hi there I used to have this ability under php but not now someone banned my ip address i get 403 forbidden when calling from our server trying to get images from images.productserve.com
steven
Hi Kingsib,
This topic is also raised in these threads:
http://shopwindowforum.com/showthread.php?t=302
http://shopwindowforum.com/showthread.php?t=310
I'm in the same position.
If you haven't found an image resizer already, I have successfully used AutoImageSize http://www.unitedbinary.com/AutoImageSize.aspx in the past on Windows based systems.
does anyone know any script similar to the above for php? this script is suberb but unfortunatelly i have a linux server :confused: :(
the-ferret
27-12-07, 16:02
hey, sorry just noticed this post ... you can resize the display attaribute easily in PHP but it wont affect the size of the file or resample as well as gdlibrary. For those without GD or want a simple solution with less processor try something like this. The script below will apply a max pixel size to the height/width (whichever is biggest) and keeps the aspect ratio
code removed as Confuscius shouted at me !
you can play about to add an alt tag if needed.
good luck
Graham
Confuscius
27-12-07, 19:04
Hi Graham
This method has been used before ages ago and DOES NOT WORK!
See the other posts referred to by Authcode.
Paul