Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 12-18-2005, 08:01 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
v1.5.x - Auto Resize Admin Addon

Requires Pixelpost 1.5
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 edit the admin_autoresize.php to keep the fullsize image or not. default it keeps the fullsize as fullsize_imagename.jpg

check out the line that reads:
$keepfullsizeimage = TRUE; // change it FALSE if you don't want to keep the fullsize image.
in admin_autoresize.php

Download Link:
http://www.pixelpost.org/v1/index.ph...ds&details=134
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #2  
Old 12-19-2005, 09:45 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
Thumbs up Thanks and a small bug

thanks for this great addon there is a small bug though

you need to have "global $keepfullsizeimage;" in the function resizeImage() otherwise the fullsize images will never be saved
Reply With Quote
  #3  
Old 12-20-2005, 06:01 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
Link for full size picture

http://se.nsuo.us/contrib/fullsize_link.php.zip is a very simple addon to add link for the fullsizeimage created by Auto Resize addon...
Reply With Quote
  #4  
Old 12-20-2005, 06:11 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Quote:
Originally Posted by se.nsuo.us
thanks for this great addon there is a small bug though

you need to have "global $keepfullsizeimage;" in the function resizeImage() otherwise the fullsize images will never be saved
Thanks for bug report.
download link is now fixed.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 12-21-2005, 09:40 PM
subneural Offline
forum loafer
 
Join Date: Dec 2005
Posts: 17
I currently have the admin_autoresize option enabled WITHOUT saving the original file. It looks like the EXIF data gets lost (just check out my images at www.subneural.com).

I just wanted to share - thanks for supporting such a great bit of code!
Reply With Quote
  #6  
Old 12-22-2005, 12:05 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
Can't see the resized picture at your site - I see that you are using a D50, somethings were changed a wee bit about EXIF in that model perphaps the EXIF reinjection script it failing - let us have a link to your resized example (with the origianl) and I will try to look into it later today
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #7  
Old 12-22-2005, 04:10 AM
subneural Offline
forum loafer
 
Join Date: Dec 2005
Posts: 17
I will do. I've made a few too many experimental changes to the various files, so I am going to first wipe & reinstall v1.5 from scratch. I'll post back here once everything is back up.

Thanks for all your support!
Reply With Quote
  #8  
Old 12-22-2005, 05:25 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Quote:
Originally Posted by se.nsuo.us
Can't see the resized picture at your site - I see that you are using a D50, somethings were changed a wee bit about EXIF in that model perphaps the EXIF reinjection script it failing - let us have a link to your resized example (with the origianl) and I will try to look into it later today
D50 might be the case. that nikons alswasy have issue with exif...
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #9  
Old 12-22-2005, 04:48 PM
303nate Offline
forum loafer
 
Join Date: Dec 2005
Posts: 2
When I go into my addons I get

Quote:
Fatal error: Call to undefined function: add_admin_functions() in /home/virtual/site34/fst/var/www/html/303nate.com/pb/addons/admin_autoresize.php on line 100
for quick reference for anyone helping line 100 is...
Quote:
99 - // add the function
100- add_admin_functions($addon_function_name,$addon_wo rkspace,$addon_menu,$addon_admin_submenu);
101-
102- //
Reply With Quote
  #10  
Old 12-22-2005, 08:30 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
Quote:
Originally Posted by 303nate
When I go into my addons I get



for quick reference for anyone helping line 100 is...
'cause as it's mentioned at the top
Requires Pixelpost 1.5

and you don't have Pixelpost 1.5 or you did not upgrade with copying all files.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:28 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs