richms Posted June 28, 2004 Posted June 28, 2004 Is there any way to have images that are not 4:3 show with the correct dimensions in osCommerce? I have seen it on a store before, it looked like the site was resizing the images and padding them appropriatly to make them uniform for the thumbnails in the catagory views, but when I try here, I get the images showing in there raw form, with the browser left to resize. The browser resizing looks awfull, and means that people are downloading several 100k jpegs when it should be only 8-10kbytes for a thumbnail.
AlanR Posted June 28, 2004 Posted June 28, 2004 There are several contributions for handling images that will do what you need. http://www.oscommerce.com/community?contri...ages&category=9 Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
richms Posted June 30, 2004 Author Posted June 30, 2004 There are several contributions for handling images that will do what you need. http://www.oscommerce.com/community?contri...ages&category=9 Heh, ended up putting this in the report page, after pressing report and not quote... DOH!.. I seem to be having issues adding any contributions. This one does the same as the last one, in that I end up with the whole of the output becoming <html><body></body></html> And nothing else. All I did was paste the additional function of function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height, '', false); } At the top, and that was enough to break it, editing it out and ftping up the re-edited one fixed it again, so its not the permissions or stuffing up the binary/ascii uploads.
jcurtis3 Posted June 30, 2004 Posted June 30, 2004 I have a quick way of doing it. I use Paint Shop Pro for this, but any photo program should do this fine. I hit "NEW" and create a blank image that is 4:3 (I use 200x160). Then I open the image I want in the catalog and resize it so that the largest dimension will fit inside the blank box. Then just cut the image, paste into the blank box, and save. Now you have an image the works well with osCommerce. My site is www.perfectracing.com (under construction) if you want to take a look.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.