Advanced search  

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

Pages: [1]   Go Down

Author Topic: Download Resized - resize img to user defined values and offer download  (Read 41396 times)

0 Members and 1 Guest are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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
« Last Edit: October 25, 2007, 07:48:41 am by Stramm »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Download Resized - resize img to user defined values and offer download
« Reply #1 on: October 19, 2007, 01:19:21 pm »

Hi Stramm, very good plugin
french.php file attached.
A suggestion: it can be usefull, if the selected size > than the fullsize to have a warning message before uploading
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Download Resized - resize img to user defined values and offer download
« Reply #2 on: October 19, 2007, 01:41:09 pm »

Frantz, did you forget to attach your file ?

Stramm, nice work. Works flawlessly. Attached dutch.php.txt (rename it).

Cheers
Hein
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Download Resized - resize img to user defined values and offer download
« Reply #3 on: October 19, 2007, 02:33:03 pm »

Quote
Frantz, did you forget to attach your file ?
oups! to fast  ;)
her is the file
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Download Resized - resize img to user defined values and offer download
« Reply #4 on: October 19, 2007, 02:50:18 pm »

Good Work!

Spanish lang file attached. Would this plugin re-size the custom thumbnails of .zip files?

Thanks,
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Download Resized - resize img to user defined values and offer download
« Reply #5 on: October 19, 2007, 03:04:49 pm »

no, it resizes the fullsized image to a user defined size, displays the result instead of the intermediate image and offers a download link.

For custom thumbs you'll have to use this new mod for the modpack http://forum.coppermine-gallery.net/index.php?topic=47538.0
(upload images and crop [auto or manually] them for use as custom thumbs for media and image files, if images files, then the fullsized can be used to crop the thumbs too)

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Download Resized - resize img to user defined values and offer download
« Reply #6 on: October 19, 2007, 10:31:24 pm »

Absolutely awesome! This is something I was silently waiting for since long long ago! Thanks, Stramm.
Italian translation attached

nish

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Download Resized - resize img to user defined values and offer download
« Reply #7 on: December 30, 2007, 07:21:57 pm »

Dear Sir,
       this is the best mod i always look for. but it resizes the images in same proportion. can we set coustom sizes. like
Best fit for you: 1280x800 (this identifice the current monitor resulution and state this)
1920x1440 | 1600x1200
1280x1024 | 1280x960
1152x864 | 1024x768
800x600 | 1920x1200
1680x1050 | 1440x900
1366x768

i like some thing like this below the thumb image. as currently it shows image above the intermediate picture. adding it below thumb can be a greate choice for user. to download the image in his required resulution.

i found a bug that the edited image do not show the alt tag write. it shows its album/edit instead of the actual alt tag.

Thanks
Nish
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Download Resized - resize img to user defined values and offer download
« Reply #8 on: December 30, 2007, 08:07:00 pm »

Shouting "bug" is not a bright idea. Name it "missing feature" if you want. However, announcement threads for plugins and mods are not the ideal place to request new features...
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Download Resized - resize img to user defined values and offer download
« Reply #9 on: December 30, 2007, 08:44:42 pm »

in codebae.php find
Code: [Select]
$sizes = array ();
$sizes [0]['x'] = '1600';
$sizes [1]['x'] = '1440';
$sizes [2]['x'] = '1280';
$sizes [3]['x'] = '1024';
$sizes [4]['x'] = '800';
$sizes [5]['x'] = '640';
$sizes [6]['x'] = $CONFIG['picture_width'];

Here you can add sizes you need. The resize method is based on your config settings. Width and height settings don't apply cause images get resized and not cropped.

nish

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Hindi Lang Added
« Reply #10 on: December 31, 2007, 06:36:58 am »

Daar Admin,

I appologies for Shouting .

Great Mod Pack.

Hindi Lang added.

Nish
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.