Jump to content

Search the Community

Showing results for tags 'dynamic thumbnails'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Developer Feedback
  • Club osC's Announcements
  • PayPal's Announcements
  • Sage Pay's Announcements
  • Solomono - new level osCommerce templates's Announcements
  • German Community's OSCOM v2.x
  • German Community's Allgemein

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. oscMarket

    Dynamic thumbnails

    In includes/html_output.php, FIND: //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $responsive = true, $bootstrap_css = '') { if ( (empty($src) || ($src == 'images/')) && (IMAGE_REQUIRED == 'false') ) { return false; } AFTER ADD: if (is_file($src) && tep_not_null($width) && tep_not_null($height)) { require_once('ext/gumlet/ImageResize.php'); if (!is_dir(DIR_FS_CATALOG . 'images/' . $width . 'x'. $height)) { mkdir(DIR_FS_CATALOG . 'images/' . $width . 'x'. $height, 0755, true); } $new_image = end(explode('/',$src)); $path = 'images/' . $width . 'x'. $height . '/'. $new_image; if (!file_exists($path)){ $OSCOM_Thumb = new ImageResize($src); $OSCOM_Thumb->resize($width,$height, true); $OSCOM_Thumb->save($path, true); } if(file_exists($path)){ $src = $path; } } in ext create directory called gumlet Within add the attached file: ImageResize.php
×