View Single Post
  #110  
Old 05-15-2007, 07:31 PM
outbackcamera Offline
forum loafer
 
Join Date: May 2007
Location: Northern Virginia
Posts: 8
auto_resize with image reupload in pixelpost v1.6

Quote:
Originally Posted by garghe View Post
any News about using auto resize addon in 1.6?
thank you!

m
I have made some changes in PPv1.6 to enable image auto resize when an image file is reuploaded using the image edit functionality.
Changes are simple:
In images_edit.php add the following two lines to trigger the admin_autoresize addon after the new image file has been uploaded and the post updated. These should go after line 262 in images_edit.php, i.e. just after the line:
<div class='content confirm'>$admin_lang_done $admin_lang_imgedit_updated #".$getid.". ".$file_reupload_str. "</div><p />";
PHP Code:
$filnamn $oldfilename;
eval_addon_admin_workspace_menu('image_uploaded'); 

Secondly, you need to add the following line to admin_autoresize.php just after the declaration for function resize_image, i.e. after the line:
function resizeImage($file, $maxsize, $jpgcompression,$filenameonly) {
PHP Code:
require_once('../includes/pjmt/EXIF.php'); 

cheers
Steve
Reply With Quote