Skip to content
Commits on Feb 19, 2012
  1. @MattWilcox

    Improved mobile detection. Better first-run experience

    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
    MattWilcox committed Feb 19, 2012
  2. @MattWilcox
Commits on Feb 17, 2012
  1. @MattWilcox

    Merge pull request #34 from gerv/patch-1

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

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

    …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".
    gerv committed Feb 17, 2012
Commits on Jan 24, 2012
  1. @MattWilcox

    Bugfix

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

    Bumping the version number

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

    Added note to security conscious people

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

    Recommend 755 permissions, not 777

    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.
    MattWilcox committed Dec 4, 2011
Commits on Nov 21, 2011
  1. @MattWilcox

    Document changes

    MattWilcox committed Nov 21, 2011
  2. @MattWilcox

    Bugfix. Also re-instated $mobile_first as TRUE

    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.
    MattWilcox committed Nov 21, 2011
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

    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.
    MattWilcox committed Nov 10, 2011
  3. @MattWilcox

    Fix rare GD lib bug

    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
    MattWilcox committed Nov 10, 2011
  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 …

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

    Merge pull request #21 from timcooper/master

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

    Document latest changes

    MattWilcox committed Oct 18, 2011
  2. @MattWilcox

    Stop proxies caching images, stop Firefox and IE experiencing the eff…

    …ects of unfavourable race-condition outcomes.
    
    Stopped Firefox (and IE) from honouring $mobile_first:
    This is because both suffer from a race condition when setting the
    cookie. Sometimes it's set before <img> are requested, sometimes not.
    This could produce desktop websites with mobile versions on first page
    load.
    
    Changed the HTTP Cache Header from "public" to "private":
    This allows caches that are specific to one user (e.g., browser cache)
    to store the image in cache; shared caches (e.g., a proxy server)
    won't. This should avoid people behind proxies or other caching
    mechanisms experiencing wrongly sized images.
    MattWilcox committed Oct 18, 2011
Commits on Sep 23, 2011
  1. @MattWilcox

    removed redundant comment

    MattWilcox committed Sep 23, 2011
  2. @MattWilcox

    Fix for IE bug

    IE wasn't setting the cookie properly
    MattWilcox committed Sep 23, 2011
Commits on Sep 18, 2011
  1. @MattWilcox

    Merge pull request #11 from oncletom/patch-1

    * replying with no content (only headers are sent; fast for client side)
    MattWilcox committed Sep 18, 2011
Commits on Sep 17, 2011
  1. * replying with no content (only headers are sent; fast for client side)

    * fixing a possible cookie injection
    Oncle Tom committed Sep 17, 2011
Commits on Sep 8, 2011
  1. @MattWilcox

    Added German translation

    Translation by Uwe Chardon, with thanks.
    MattWilcox committed Sep 8, 2011
  2. @MattWilcox
Commits on Sep 6, 2011
  1. @MattWilcox

    Added clarification of the license

    It's Creative Commons' most liberal license
    MattWilcox committed Sep 6, 2011
  2. @MattWilcox

    Added a readme file in a format to keep GitHub happy

    And therefor renamed readme.htm back to instructions.htm
    MattWilcox committed Sep 6, 2011
  3. @MattWilcox

    Merge pull request #9 from EmilioBravo/master

    Added alpha transparency support for .png files
    MattWilcox committed Sep 6, 2011
  4. Added transparency support for .png files

    Luis Escobar Bravo committed Sep 5, 2011
Commits on Sep 5, 2011
  1. @MattWilcox
Something went wrong with that request. Please try again.