forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Αndré on May 11, 2012, 02:34:12 pm

Title: Download Resized plugin for cpg1.5.x (resize img to user defined values)
Post by: Αndré on May 11, 2012, 02:34:12 pm
This is the cpg1.5.x port of the "Download Resized" plugin by Stramm:

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
Title: Re: Download Resized plugin for cpg1.5.x (resize img to user defined values)
Post by: serg5777 on May 11, 2012, 03:49:48 pm
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 :)
Title: Re: Download Resized plugin for cpg1.5.x (resize img to user defined values)
Post by: serg5777 on May 11, 2012, 04:15:14 pm
Forgot to say, immediately after installing plug shifted layout.
Title: Re: Download Resized plugin for cpg1.5.x (resize img to user defined values)
Post by: serg5777 on May 11, 2012, 04:23:17 pm
Corrected proofs removing rows in codebase.php
Code: [Select]
<table class="tableh" width="100%">
</table>