Skip to content
Commits on Apr 16, 2012
  1. @MattWilcox

    fixed version number

    MattWilcox committed Apr 16, 2012
  2. @MattWilcox

    Clarified instructions further

    MattWilcox committed Apr 16, 2012
    For the best reliability, the JS needs to be the first JS on the page.
    Not *just* in the <head>, but as high up as you can put it.
  3. @MattWilcox

    Updated changelog

    MattWilcox committed Apr 16, 2012
  4. @MattWilcox

    BUGFIX

    MattWilcox committed Apr 16, 2012
    Now generates Retina images correctly if the required image size was
    larger than the maximum $resolutions value
Commits on Apr 14, 2012
  1. @MattWilcox

    Updated changelog

    MattWilcox committed Apr 14, 2012
  2. @MattWilcox

    JPGs are now saved as Progressive JPG

    MattWilcox committed Apr 14, 2012
    Smaller file-size, faster downloading.
  3. @MattWilcox

    Minor bugfix

    MattWilcox committed Apr 14, 2012
    Compatibility with old-style JS snippet
  4. @MattWilcox

    Updating instructions

    MattWilcox committed Apr 14, 2012
  5. @MattWilcox

    Document 1.5 updates

    MattWilcox committed Apr 14, 2012
  6. @MattWilcox

    Smarter handling of Retina type displays

    MattWilcox committed Apr 14, 2012
    Previous AI behaviour meant that supporting Retina required adding very
    high values in the $resolutions array. This is sub-optimal:
    
    1) This array is meant to be nothing more than the same values as your
    media query breakpoints. Adding larger ones isn't intuitive.
    2) When no cookie is set, AI sends non-mobile devices the largest
    $resolution value, which in this case could be far too large for most
    people.
    
    AI is now much smarter, you do not need to edit the $resolutions array;
    just leave that as your CSS MQ sizes.
    
    AI now auto-detects the pixel density of any high DPI device and either
    picks a matching size from the existing array, or creates new high-dpi
    images which are multiples of your chosen $resolutions values.
    
    NOTE: If you see folders in the ai-cache directory which are *larger*
    than any defined in your $resolutions array, it is because someone with
    a high DPI / Retina display visited your site, and AI was able to
    generate the required image.
Commits on Mar 29, 2012
  1. @MattWilcox

    updating readme

    MattWilcox committed Mar 29, 2012
Commits on Mar 28, 2012
  1. @MattWilcox

    Updated instructions

    MattWilcox committed Mar 28, 2012
Commits on Feb 19, 2012
  1. @MattWilcox

    Improved mobile detection. Better first-run experience

    MattWilcox committed Feb 19, 2012
    Better behaviour when cookies are not available.
    
    Now creates the cache directory itself, making installation a two-step
    process:
    
    1) Put the files on your server
    2) Add one line of JS to the <head> of your HTML
  2. @MattWilcox
Commits on Feb 17, 2012
  1. @MattWilcox

    Merge pull request #34 from gerv/patch-1

    MattWilcox committed Feb 17, 2012
    Fix browser detection to be more future-proof - check for mobile browsers instead of desktop ones.
  2. @gerv

    Fix browser detection to be more future-proof - check for mobile brow…

    gerv committed Feb 17, 2012
    …sers instead of 'desktop' ones. This does a better job for unusual OSes, tablets etc. "Mobile" is in the UA string of the latest mobile IE, mobile Firefox and all mobile WebKits, but is not in the UA string of Android tablets or desktop browsers.
    
    
    If you want to treat Opera Mobile as a mobile browser too, change the detection to "mobi" instead of "mobile".
Commits on Jan 24, 2012
  1. @MattWilcox

    Bugfix

    MattWilcox committed Jan 24, 2012
    Eliminated occasional double-slash in $cache_file path due to
    $requested_uri sometimes starting with a /
    
    Made created directories CHMOD 0755 instead of 0777
Commits on Jan 20, 2012
  1. @MattWilcox

    Bumping the version number

    MattWilcox committed Jan 20, 2012
    No actual changes, I'd just forgotten to update the version number in
    the comments last time.
Commits on Dec 4, 2011
  1. @MattWilcox

    Added note to security conscious people

    MattWilcox committed Dec 4, 2011
    Advised the very paranoid to move ai-cache outside of web-root.
  2. @MattWilcox

    Recommend 755 permissions, not 777

    MattWilcox committed Dec 4, 2011
    777 is dangerous as potentially anyone could write and execute files.
    Use 755 if you can. Or, set the ai-cache directory to be outside of
    your web-root.
Commits on Nov 21, 2011
  1. @MattWilcox

    Document changes

    MattWilcox committed Nov 21, 2011
  2. @MattWilcox

    Bugfix. Also re-instated $mobile_first as TRUE

    MattWilcox committed Nov 21, 2011
    Stupid mistake was causing the browser detect to always return false.
    Now fixed.
    
    With this update Adaptive Images now detects if a user is running on a
    desktop OS and switches $mobile_first to FALSE in that case. This means
    that _if no cookie is set_ and $mobile_first is TRUE the following will
    happen:
    
    On a mobile phone, the mobile sized image will be delivered.
    On a desktop, the highest resolution configured will be delivered.
    
    If a cookie is set, Adaptive Images will use the cookie value to
    determine the correct size image to send.
Commits on Nov 11, 2011
  1. @MattWilcox

    Document latest changes

    MattWilcox committed Nov 11, 2011
  2. @MattWilcox
Commits on Nov 10, 2011
  1. @MattWilcox

    List the latest updates

    MattWilcox committed Nov 10, 2011
  2. @MattWilcox

    Make $mobile_first safer

    MattWilcox committed Nov 10, 2011
    To work around browser issues with unreliable cookie setting speed
    Adaptive Images now also checks the user agent string.
    
    If a desktop environment is detected, $mobile_first is automatically
    over-ridden to "FALSE". If not Adaptive Images will obey the configured
    value.
    
    This is a safety fallback and requires testing before I revert the
    default $mobile_first configured value to TRUE.
  3. @MattWilcox

    Fix rare GD lib bug

    MattWilcox committed Nov 10, 2011
    Fixed an issue where GD was present but did not always have the
    imageconvolution function available.
    
    Changed $mobile_first default to FALSE to avoid issues with
    unpredictable browser behaviour relating to race conditions between
    cookie setting and image requesting
  4. @MattWilcox

    Document latest changes

    MattWilcox committed Nov 10, 2011
  5. @MattWilcox

    Various updates

    MattWilcox committed Nov 10, 2011
  6. @MattWilcox

    Fixed typo

    MattWilcox committed Nov 10, 2011
  7. @MattWilcox

    Added option for supporting Retina and other high density devices by …

    MattWilcox committed Nov 10, 2011
    …using an alternative JS snippet. (Thanks to Fabian Michael)
Commits on Oct 30, 2011
  1. @MattWilcox

    Merge pull request #21 from timcooper/master

    MattWilcox committed Oct 30, 2011
    Decode URL to allow spaces and other encoded chars
Commits on Oct 26, 2011
  1. @timcooper
  2. @timcooper
Commits on Oct 18, 2011
  1. @MattWilcox

    Document latest changes

    MattWilcox committed Oct 18, 2011
Something went wrong with that request. Please try again.