View Single Post
Old November 1st, 2007, 05:28 AM   #7 (permalink)
Luciano
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Yes the manipulation does not always work

Make sure you are rotating a *.jpg image.. otherwise you might be getting an error that will be (hopefully) fixed in 2.4 ( http://www.photopost.com/forum/showt...14#post1209314 )

depending on the size of your original image, the intermediate and the php.ini memory setting.. it can give errors

ALSO imagerotate function only exists in php > 4.30 (so it wont work with php 4.29)

AND
it will only work with jpgs.. (there should be an error message but there isnt)

rotateimage function is very memory intense in php..
what happens.. and in vbgallery it is a loop rotating 3 images.. thumbnail, intermediate AND original..

Mine works fine.. i set the memory to 32 MB but if the original is over 1024 pixels wide.. it hangs on the the original, thus rotating only thumbnail and intermediate.. giving me a blank page..

So i disabled the image tools.. because it also meens a loss in imagequality (if it works)

But of course it could be also something else..

to test if it is one of the above

open the file : forums/includes/function_imageedit.php
find:
Code:
Content visible to verified customers only.
replace it with:
Code:
Content visible to verified customers only.
Now try and rotate (not flip) a jpg image (not a gif or png)

This will give you "readable errors" (undo the changes after testing)
it checks if you have correct php version..
AND by removing the @ in front of the imagejpeg and other function.. the php errors are not suppressed.. so you will see warnings etc... also memory problems..
THIS does NOT repair the problem but helps tracking it down!!!

If you still get a blank page after testing.. also undo the changes..
Its none of the errors above..

hope that helps

Luc

PS: @zach.. this has nothing todo with THIS error.. but just seen the imagerotate will only work with jpgs.. --> posting bugreport

Last edited by Luciano; November 1st, 2007 at 05:51 AM.
Luciano is offline   Reply With Quote