View Single Post
  #43  
Old 06-18-2006, 12:03 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
@ DerPatrick
and
@ blanc

Admin Auto Resize Addon
Version 1.2

Resizes uploaded photo on fly. All photos after uploading are resized to a predefined size set in the Options >> Thumbnails in the admin panel. The special thing about this addon is that it preserives the EXIF data. (Thanks to Romain for the autoresize hack for 1.4.x)

In this version you can set dimention of resize as by editing the admin_autoresize.php. You may also change the configuration to keep the fullsize image or not. default it keeps the fullsize as fullsize_imagename.jpg. For example if you image name was DCF0001.jpg the full size image will reside as fullsize_DCF0001.jpg inside the images directory.

check out the line that reads:
PHP Code:
// Version 1.2: Modified and bug fixed. Now you can set dimention of resize. By Ramin Mehran (pblog.raminia.com) - 2006/06/18
//

$keepfullsizeimage TRUE// change it FALSE if you don't want to keep the fullsize image.;
// usage:  (1) $DIRECTION_OF_MAXIMUM = 'height'; If you want to set the value for a fixed HEIGTH
//      (2) $DIRECTION_OF_MAXIMUM = 'width';  If you want to set the value for a fixed WIDTH
//     (3) $DIRECTION_OF_MAXIMUM = '';       If you want just to keep the maximum of width OR height at a specific size
$DIRECTION_OF_MAXIMUM '';  //  Default is empty. it will resize the longest size of height OR width to predefined size. 
Download:
http://www.pixelpost.org/v1/index.ph...ds&details=134
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote