Download Resized plugin for cpg1.5.x (resize img to user defined values) Download Resized plugin for cpg1.5.x (resize img to user defined values)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Download Resized plugin for cpg1.5.x (resize img to user defined values)

Started by Αndré, May 11, 2012, 02:34:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

This is the cpg1.5.x port of the "Download Resized" plugin by Stramm:

Quote from: Stramm on October 19, 2007, 12:01:44 PM
Plugin Download Resized

What it does:
above the intermediate image a dropdown gets added. The user can select a new image resolution and the plugin will start to resize the fullsized image to the new size. When done, it displays the new resolution instead of the intermediate image and offers a download link for that pic below the dropdown.

Additional info:
If the selected size is > than the fullsized image size, no resize will be done and the fullsized gets offered for download.
The resized images temporarily gets saved in the albums/edit folder. If an image with the same name is already existing there, a index number gets added to the temp file. If the resize function is called, all files in the edit folder older than 15 mins get deleted again.

Resizing on the fly may put a lot of extra heat on your server (depending on how many users will use that feature and your server specs)

Supported langs so far:
- english
- german
- dutch

New version 1.1:
- dropdown only shows valid resize values (if fullsized < resize value than option won't show)
- dropdown doesn't show for non image files
- dutch lang file added (thanks Hein)

New version 1.2:
- detects if the modpack is installed. If so, it uses the original copy as base image and adds a watermark (if enabled) to the resized image  (downsizing of the watermark is of course supported too)

Demo:    http://stramm.st.funpic.org/displayimage.php?pos=-252

serg5777

Thank you! And how to do so by clicking on the "send" did not open a new image, but simply offered the system to download it? Simply great pictures no longer fit into the layout :)

serg5777

Forgot to say, immediately after installing plug shifted layout.

serg5777

Corrected proofs removing rows in codebase.php
<table class="tableh" width="100%">
</table>