Index Help

DynamicResize

Average rating :
not rated yet

  • Author: arno
  • Categories: Plugin
  • First revision date: 2011-09-19
  • Latest revision date: 2011-09-19
  • Available languages: 1 (see)
  • Compatible with: Piwigo releases 2.2
  • Downloads: 1322
Français [FR]

About: Attention:
- VERSION 0.1 under development! Do not assume that this version is operational!
All discussions on: http://fr.piwigo.org/forum/viewtopic.php?id=19304
Your feedback and contributions are welcome!
- Requires ImageMagick to be installed on your server (see phpinfo)
- Requires 'AutoSize' plugin activated.
- Not recommended on a shared server

DynamicResize aims to dynamically resize the image, depending on the size available for display. For example: if the source photo's resolution is high (FTP upload), but the display resolution is only 800x600, the photo will be reduced by the server before being downloaded 800x600, saving download time and display;
In preliminary tests, the computation time did not exceed 0.5s per photo.
This calculation is CPU-intensive. 'DynamicResize' is not recommended on a shared server.

Two modes are being considered:
1) A way to 'flow' where the size of the current frame is calculated from the last photo.
Advantage: no waiting for the complete page download to determine photo size.
disadvantages:
* Is not active on the first photo
* Difficult to manage for photos that continuously change size

2) A mode 'XHR' where the size of the photos are calculated by the current page.
Advantage: dynamic calculation, adapted to each photo.
Disadvantages: Requires wait for the full page download before downloading the resized photos.

- arno

Related links

Revision list

expand/collapse all

Revision 0.3 1322 Downloads, Released on 2011-09-19
Download revision 0.3

Compatible with: 2.2

New languages: Français [FR] Total : 1

Français [FR]

Bugfix: compatibility with the plugin 'look_like_gbo' (partial prefetching off)

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact