You are browsing the old Contao 3 extension repository. Contao 3 is no longer maintained as of June 2019! You can find the Contao 4 extensions on extensions.contao.org.

Extensions > responsive_images

Resize Pictures for Mobile devices

[responsive_images]

Smaller resolution images can be delivered to mobile devices

With this extension, the images of your website can be reduced according to the user's screen resolution.
No mod_rewrite is required.

Setting up the extension

  • Installieren Sie die Erweiterung
  • Open System / Settings
  • Scroll to "files and images." There you will find three new fields which are marked with "[responsive_images]."
  • In the field breakpoint define the screen width, in which a small image should be created. for example: "480,800,1200,1600"
  • In the field Screen width Fallback you can define a pixel width, which is used if JavaScript or cookies are disabled. This is determined from Contao.
  • If Use Viewport Width is enabled, we use the viewport of the browser to resize the images and not the screen resolution. Please enable for development purposes only.

How does [responsive_images] work?

he extension requires no change to the htaccess as the solution with "Adaptive images". The screen resolution is determined using javascript and a cookie.

The first time the page is called the extension sent a HTML page, which refers to itself and automatically reloads the page. This state is stored in the session of Contao. This process is executed only once per session.

Shrinking the images is carried out by Contao. All reduced images is therefore saved under assets/images. Similarly, each breakpoint is cached separately. This means that the cache of Contao is optimally used if it is enabled.

There is a fallback solution for users wich disabled Javascript and / or Cookies. A get parameter is appended to the URL. noscript=1. A permanent recharge is prevented by setting this get Parameter.

Version
1.0.0-RC2
Type
Free
Release date
01.10.2013
Category
Utility
License
Copyright
© 2013 Andreas Nölke
Author
Andreas Nölke (zero) http://brothers-project.de
Release notes and change log for 1.0.0-RC2
Other versions

https://github.com/Zeromax/responsive_images

Release functionality
 
Total functionality
0.00
Release usability
 
Total usability
0.00
Release quality
 
Total quality
0.00
Release rating
 
Total rating
0.00 (0 votes)
Release downloads
6
Total downloads
153
Release installs
19
Total installs
769
Release updates
13
Total updates
170
Dependencies of this extension
Other extensions depending on this one
Name
Version from
Version to
Contao
3.1.0
3.1.3
3.1.0
3.1.0
Name
Version from
Version to