Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Oct 13 2010 06:46 AM
  • Last Updated: Jul 22 2013 01:38 PM
  • File Size: 13.31KB
  • Views: 4314
  • Downloads: 248
  • Supported Versions: IP.Board 3.1.x, IP.Board 3.2.x

Download (RedEnzian) Resize Uploaded Images 1.0.0

* * * * - 6 Votes



Screenshots
This hook trys to safe diskspace on your servers harddisk by resizing uploaded images before they get saved.

You can set the max. allowed file dimension for uploaded images (e.g. 1024x768). If the uploaded image exceeds this dimensions it will be resized and resampled.
The second option is a filesize check. If the uploaded image is smaller then the set dimensions, but the filesize is bigger than allowed, it will be resampled to save diskspace.

The following settings will be added to your settings interface after installation:
  • Enable or disable the hook
  • Resize to width x height (this is also the size the file will checked against)
  • Maximum filesize in KB
  • Imagequality for jpeg, png and gif (to compress the image after resizing)
If you only use the traditional uploader, no further steps must be done after installing the hook.

If you want to use the Flash Uploader, you have to edit on template bit:
Goto ACP->Look & Feel->YOUR SKIN->Post Screen->uploadForm

and search for
'file_size_limit': "{$stats['max_single_upload']}"		} )});
replace {$stats['max_single_upload']} with 0.

This is because the flash uploader checks the filesize befor it really uploads to the server.

Known Issues:
The Flash Uploader displayes the original uploaded Filesize instead of the resized filesize.

Demo notes:

The Demo has the following settings applied (512kb max upload filesize and resize to 800x600 pixels).
Simple upload an image greater than 512KB

Oh, and one last thing:
When the resized image is still bigger then the allowed size (per Post Member settings, etc.) there will still be an error http://community.inv..._DIR#/wink.gif. This hook trys just to prevent the storage of unchanged 10 Megapixel camera images http://community.inv..._DIR#/wink.gif.


This is a Hook from the Free Mod a Week List:
This Plugin has been created because you have voted for it in the Mod a week Request thread ( http://community.inv...-reboot-thread/ ). Keep up giving us developers ideas for modification and help us to improve existing ones by reporting problems http://community.inv...DIR#/smile.gif.

Changelog:
1.0.0: Initial Version



This hook is FREE to use however Donations are greatly appreciated!
Posted Image






Other files you may be interested in ..





  • 2,083 Total Files
  • 19 Total Categories
  • 304 Total Authors
  • 533,546 Total Downloads
  • Italian Launguage Pack Latest File
  • EnzoC Latest Submitter

53 user(s) are online (in the past 30 minutes)

13 members, 38 guests, 0 anonymous users


+adryady83, +Ted Hartung, Bing (1), Yahoo (1), +atsunrise, +ququruku, +PaweĊ‚ Indyka, +Draffi, +VAHID216, +rauf0, Neeq, Anonymous., +Forum Opel24, efect, +Achim Kleist