Jump to content
Latest News: (loading..)

Search the Community

Showing results for tags 'adaptive images addon'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
    • Partner Announcements
    • Ambassadors
  • Commercial Support
    • Developer Feedback
  • osCommerce Online Merchant v2.x
    • General Support
    • Installation and Configuration
    • Upgrading from Earlier Versions (v2.x to v2.x)
    • Add-Ons
    • Tips and Tricks
    • Security
  • Development
    • osCommerce Online Merchant v2.4
    • osCommerce Online Merchant Community Bootstrap Edition
    • osCommerce Online Merchant v3.x
    • Development Proposals
  • General
    • OSCOMMERCE.TV
    • Next Steps / Optimizations / Marketing
    • Live Shop Reviews
    • E-Commerce Laws
    • General Discussions
    • PHP / SQL / Web Design
  • 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
  • German Community's OSCOM v3.x

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. JcM Adaptive Images addon Frozen This will automatically produce several images from your original image so each device can be served with the correct size image. Will help speed up site loading on mobile devices. Again totally standalone with no core code change. Once you have copied all the files over go into admin/Content /Modules and install “JcM Adaptive Images “ and turn it on. You will have nothing to see as it just adds script. Go to a mobile device and view your site, browse around and then check your site files. You should have a directory /ai-cache and withing this will be other folders /100 /200 ect. To match your image widths. If this is true its working. If not check your config. The script works but will mess up low quality images! So if your images are small to begin with not much point using this. As it scales up images to try and give a better view all you will get is a fussy mess! To your a .htaccess file I strongly advise you to duplicate that file so you can revert to it if things go pear-shaped. Open your existing .htaccess file and edit the contents. You'll need to look and see if there is a section that begins with the following: <IfModule mod_rewrite.c> If there is, then you need to add the following lines into that block: # Adaptive-Images ----------------------------------------------------------------------------------- # Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows: # RewriteCond %{REQUEST_URI} !some-directory # RewriteCond %{REQUEST_URI} !another-directory RewriteCond %{REQUEST_URI} !assets # Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories # to adaptive-images.php so we can select appropriately sized versions RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php # END Adaptive-Images ------------------------------------------------------------------------------- If you don't have a code block then simply copy and paste the following into your file instead: <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On # Adaptive-Images ----------------------------------------------------------------------------------- # Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows: # RewriteCond %{REQUEST_URI} !some-directory # RewriteCond %{REQUEST_URI} !another-directory RewriteCond %{REQUEST_URI} !assets # Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories # to adaptive-images.php so we can select appropriately sized versions RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php # END Adaptive-Images ------------------------------------------------------------------------------- </IfModule> Next, You can now open the “adaptive-images.php” file and have a play with the settings that are in the CONFIG area. By default it looks like this: /* CONFIG ----------------------------------------------------------------------------------------------------------- */ $resolutions = array(1382, 992, 768,500, 480, 250, 100, 40, 57); // the resolution break-points to use (screen widths, in pixels) $cache_path = "ai-cache"; // where to store the generated re-sized images. Specify from your document root! $jpg_quality = 80; // the quality of any generated JPGs on a scale of 0 to 100 $sharpen = TRUE; // Shrinking images can blur details, perform a sharpen on re-scaled images? $watch_cache = TRUE; // check that the adapted image isn't stale (ensures updated source images are re-cached) $browser_cache = 60*60*24*7; // How long the BROWSER cache should last (seconds, minutes, hours, days. 7days by default) /* END CONFIG ---------------------------------------------------------------------------------------------------------- ------------------------ Don't edit anything after this line unless you know what you're doing ------------------------- --------------------------------------------------------------------------------------------------------------------- */ You need to change this (1382, 992, 768,500, 480, 250, 100, 40, 57) to add the width sizes you have in your shop admin for your images.
×