osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

'On the Fly' Auto Thumbnailer using GD Library

This is a discussion on 'On the Fly' Auto Thumbnailer using GD Library within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; If THUMBNAIL_ALLOW_LARGER configuration parameter is set to "false" and desired image is bigger than original, the product_thumb.php works Ok, making ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-13-2008, 01:30 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,492
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post 'On the Fly' Auto Thumbnailer using GD Library

If THUMBNAIL_ALLOW_LARGER configuration parameter is set to "false" and desired image is bigger than original, the product_thumb.php works Ok, making a copy of original image so avoiding pixelate it.

But tep_image function creates an <IMG> tag with the WIDTH and HEIGHT desired attributes, not the original ones, so you will see a pixelated image anyway. This contribution is intended to solve this problem: if image will not be resized to a larger one, <IMG> tag will include original size of image.

This contribution is only for those who want not to resize from small to bigger images. Please, do not install if you prefer to let them to resize.

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
'On the Fly' Auto Thumbnailer using GD Library michael_s New osCommerce Contributions 1 01-05-2008 11:13 PM
'On the Fly' Auto Thumbnailer using GD Library michael_s New osCommerce Contributions 0 07-25-2007 10:24 PM
'On the Fly' Auto Thumbnailer using GD Library michael_s New osCommerce Contributions 0 03-23-2007 11:00 AM
'On the Fly' Auto Thumbnailer using GD Library michael_s New osCommerce Contributions 0 03-12-2007 08:12 PM
'On the Fly' Auto Thumbnailer using GD Library michael_s New osCommerce Contributions 0 03-11-2007 11:00 AM


All times are GMT -8. The time now is 06:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax