[Pro] Adaptive images

Hey all,
Wondering if anyone has used adaptiveimages.php on a website. I’ve given it a try but not really sure its working.

Anyone have an example of the .htaccess file and the adaptiveimages.php file used and any editing to those files that they can share?


freewaytalk mailing list
email@hidden
Update your subscriptions at:

One easy way to see if it’s working is to look for the “ai-cache” folder on the server. Within that folder should be breakpoint folders (320, 480, 1920 etc.) and within those should be scaled images that are generated on-the-fly.

Todd
Office (Chicago): 312.212.3955


freewaytalk mailing list
email@hidden
Update your subscriptions at:

Yes I created one and placed the path to it in the php file. Nothing is in it the folder so I guess I have something incorrect.

Billy


freewaytalk mailing list
email@hidden
Update your subscriptions at:

From adaptive-images.php this is the only variable I modified.

$resolutions   = array(1281, 1088, 1040, 1024, 1023, 1000, 945, 883, 842, 768, 616, 480, 364); // the resolution break-points to use (screen widths, in pixels)

In the .htaccess file

<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} !and-ignore-this-directory-too
  	RewriteCond %{REQUEST_URI} !folder1
  	RewriteCond %{REQUEST_URI} !folder2
  	RewriteCond %{REQUEST_URI} !folder3

  # don't apply the AI behaviour to images inside AI's cache folder:
  RewriteCond %{REQUEST_URI} !ai-cache

  # 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>

Todd
Office (Chicago): 312.212.3955

On Jul 21, 2016, at 2:23 PM, billy kimmel email@hidden wrote:

Hey all,
Wondering if anyone has used adaptiveimages.php on a website. I’ve given it a try but not really sure its working.

Anyone have an example of the .htaccess file and the adaptiveimages.php file used and any editing to those files that they can share?

http://smartypantsgraphicdesign.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

By Revert you mean restore it to what I had before?

Billy


freewaytalk mailing list
email@hidden
Update your subscriptions at:

Yep.

Todd
Office (Chicago): 312.212.3955

By Revert you mean restore it to what I had before?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options