PDA

View Full Version : "fullsize_" photo creation problem in AutoResize


biser
02-10-2006, 12:40 AM
I need your help...

I'm using the 1.5 Beta, along with the Buzznet template, which adds the auto resize add-on. I've also tried using the current stable version and installing the auto resize add-on, seperately. Pixelpost is awesome, and at first glance it works great, but I'm having a problem with fullsize images. They're not being created at all.

Here's more info on my install...

http://www.familiehouse.net/


You are running version 1.5Beta of Pixelpost, December 2005.
Latest pixelpost version: Check

Looking for help or want to give feedback, please step into pixelpost forum.: www.pixelpost.org/forum/

Host Information

URL http://www.familiehouse.net/admin/index.php
PHP-version 5.0.4 (Pixelpost's min requirement: PHP version: 4.3.0 )
MySQL version 4.1.14-standard-log (Pixelpost's min requirement: MySQL: 3.23.58 )
GD-lib bundled (2.0.28 compatible) with JPEG support
File Uploads to Pixelpost site are possible.

Server software Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
EXIF Pixelpost is using exifer v1.5 for EXIF-information.

Paths
Guessed imagepath: /home/familieh/public_html/images/
Configured Imagepath: ../images/

Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK


The picture resizing and thumb creations come out great, but the fullsize photo is never created. When I click on "Click for Full Size", the next page shows tags that are not parced and an icon for the failed image. The path of the image looks correct, but properties shows the <IMAGE_NAME> tag still in the path...


http://www.familiehouse.net/images/fullsize_<IMAGE_NAME>


When I look in my directories, there in no "fullsize_" images created, yet I don't get any errors on the upload.

Other things I'm noticing...

Using IE6 on the backend yields an IE error in page loading (the little yellow caution sign in the status bar of the browser.

Here's the error summary...


Line: 119
Char: 3
Error: 'this.evnt' is null or not an object
Code: 0
URL: http//www.familiehouse.net/admin/index.php



Also, I get this error in the Add-ons section (under Auto-Resize)...


Warning: getimagesize(thumbnails/thumb_20060209201435_dsc01382.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/familieh/public_html/addons/photoblink_thumbs.php on line 82
(and on line 91)


I'm sure I must be doing something wrong, as I don't see this problem happening elsewhere in the forum. Thanks for any help you can lend. Please let me know if you need more information.

- Thad

se.nsuo.us
02-10-2006, 03:56 AM
From your message I can see only point that the AutoResize addon given by the file admin_autoresize.php is specifically for Pixelpost 1.5x and above will not work with 1.4
do you have admin_autoresize.php? or something else...

biser
02-10-2006, 02:37 PM
I'm using Pixelpost 1.5 Beta. Isn't this the same as 1.5.x? It's a fresh install I downloaded last week.

Joe[y]
02-10-2006, 04:08 PM
have you checked to see that the addon is switched on in the admin section?

biser
02-10-2006, 06:58 PM
']have you checked to see that the addon is switched on in the admin section?


Yes, it's on. In fact it's working, as it is creating the resized images. The only thing it's not doing is creating (or maybe renaming and saving the original image to "fullsize_<the image filename>. My photos are 5MP and they're resized down to 450, but the original image upload (fullsize photo) isn't being saved anywhere. I have the settings set to...


Auto-resize (admin_autoresize version 1.0): "On"
Resize automatically the uploaded images? to "yes"
Maximum image size: "450"
JPG compression rate: "75"
Keeping the fullsize image too? YES!

se.nsuo.us
02-11-2006, 03:38 AM
Ahhhh.... that bug - I had presumed that this was corrected when I reported it :)

find the line function resizeImage($file, $maxsize, $jpgcompression,$filenameonly) { It is line 134 in my case and below it add
$keepfullsizeimage = 1;

Hopefully that should solve it.

A longer explaination if you are technically inclined is that the $keepfullsizeimage is refered to in a function but is not inside the scope of the function - I had initially thought that making it global in the function would do the job but that does not work declaring it inside the function works :)

biser
02-11-2006, 01:12 PM
Hopefully that should solve it.



Yes, it is now creating the fullsize_imagename.jpg file. Thanks - one down, a couple more problems to go.

On the fullsize image page, though, some of the Pixelpost image tags are not parsed, such as <IMAGE_NAME> (which is need to display the file), <IMAGE_TITLE>, <IMAGE_PREVIOUS_ID> and <IMAGE_NOTES_CLEAN>. It seems to be a problem with the Buzznet template - it's been a real Buzzkill for me. :) Sorry, I couldn't help myself.

Anyway, I decided to abandon the effort and try another template.

Thanks,

Thad

raminia
02-21-2006, 07:04 AM
download the fixed version now.
version 1.1

link
http://www.pixelpost.org/v1/index.php?x=downloads&details=137

Samantha_Dennett
04-30-2006, 04:03 PM
Ahhhh.... that bug - I had presumed that this was corrected when I reported it :)

find the line function resizeImage($file, $maxsize, $jpgcompression,$filenameonly) { It is line 134 in my case and below it add
$keepfullsizeimage = 1;

Hopefully that should solve it.

A longer explaination if you are technically inclined is that the $keepfullsizeimage is refered to in a function but is not inside the scope of the function - I had initially thought that making it global in the function would do the job but that does not work declaring it inside the function works :)


I had the same problem, but when I tried to fix it with the above solution, my site admin came back with this...
Parse error: parse error, unexpected '=', expecting ',' or ';' in /home/ssd01001/public_html/photos/addons/admin_autoresize.php on line 132
And loads completely blank!

It works completely fine (minus the "full-size" image creation) as long as I don't add the = 1; = 2; = 3; after the $keepfullsizeimage

I'd like to be able to use the buzznet template, but at this point it's pretty much impossible since nothing lines up without the resize and such. Phooey.

Any idea how to fix this?

raminia
04-30-2006, 10:43 PM
I assumed that I fixed it. did you download it recently?

Samantha_Dennett
05-02-2006, 03:36 PM
Yep, downloaded after the "fix". I have no idea why it doesn't work, but it really really dislikes the "=" as the error shows above.

The only difference is that I'm using the latest release of pixelpost not Beta 1.5.

Still doesn't work right either way. :(