osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | IMAGES | 3239   


oscommerce ImageViewwithOriginalDimension
[3239]
 
 
box_bg_l.gif.
"Released under the GNU General Public License

************************************************
Image Manipulator v-1.0.0
(Based on Original File from osCommerce)
Author: Kaushik Sarkar
E-mail:kaushik_sarkar2004@yahoo.co.in

************************************************

In admin panel there is a section called Image, under Configuration. In Central Panel two Constant (Small Image Width and Small Image Height) the corresponding keyword in code are (SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT).The roll of these two constants are calculated the image size, because in any e-commerce portal there are two views of any image one is thumbnail and other is large view. But width and height of images are not same, take an example, if width and height of a image are 100 and 80 whereas width and height of another image are 80 and 100 respectively. So I have modified the tape image function of html_output.php (catalog/include/function/html_output.php). Before modification this function has 5 parameters (among which $width and $height is responsible for re-calculating images).I remove those parameters now it has only three parameters

function tep_image($src, $alt = '', $parameters = '')
{
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') )
{
return false;
}



******** IT IS STRONGLY SUGGESTED TO MAKE A BACK-UP OF THIS FILE FIRST **********"

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers