PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Installs and Upgrade - vBulletin 3.5.X (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-5-x/)
-   -   Image manipulation not working (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-5-x/121796-image-manipulation-not-working.html)

Exacto December 28th, 2005 06:12 AM

Image manipulation not working
 
When I try to flip a image 90, 180, 270, degrees I just get a blank white page.

Zachariah December 28th, 2005 07:54 AM

Your settings for the server are correct in the gallery ?
- GD2 /1
- Imagemagick

Exacto December 28th, 2005 04:30 PM

My settings in the gallery are GD2 but in the vB options it set to GD. Does that matter? I tried to set the Gallery option to GD1 and it didn't help.

Zachariah December 28th, 2005 05:10 PM

Quote:

Originally Posted by Exacto
My settings in the gallery are GD2 but in the vB options it set to GD. Does that matter? I tried to set the Gallery option to GD1 and it didn't help.

Login: AdminCP => Maintenance => View PHP info.
- Down about 1/2 way
"gd"

Code:

Content visible to verified customers only.
Make sure your forums and gallery are set to the setting your server gives you.
- If you do not find GD look for Imagemagick and it's path.

Exacto December 28th, 2005 05:50 PM

Thanks for the reply. I looked at the PHP info and here are the settings:
GD Support: Enabled
GD Version: 2.0 or higher

My settings in Image Options is:
Image Verification Library: GD
GD Version: GD 2+

My Image resize option in the Gallery is set to GD2

All seems to look fine:confused:

tintin74 October 31st, 2007 05:18 PM

Same for me. I've the same php settings of Exacto.

When I try to rotate or make any other manipulation, I get a blank screen.

Any idea?

Luciano November 1st, 2007 04:28 AM

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

tintin74 November 5th, 2007 01:23 AM

Thank you Luciano.

I'm running vbGallery and not photopost.

I've a function_gallery_imageedit.php file with this code:

Code:

Content visible to verified customers only.
Could you suggest me how to modified this code please?

Thank you

Luciano November 5th, 2007 08:35 AM

Quote:

Originally Posted by tintin74 (Post 1209539)
Thank you Luciano.

I'm running vbGallery and not photopost.

we are both talking about vbgallery..

Quote:

Originally Posted by tintin74 (Post 1209539)
I've a function_gallery_imageedit.php file with this code:
..............
Could you suggest me how to modified this code please?

Thank you

That code is just to resize the thumbnails.. the code i meant above is in the SAME file but at anoter place in the file.. ...(the file is very big)
search for: imagerotate($tempimage OR imagerotate( $tempimage and you should find the codeblock i meant..
in functions_gallery_imageedit.php
the function is called: function rotate_image($imageinfo, $angle)

and can be found in functions_gallery_imageedit.php starting around line 636
Code:

Content visible to verified customers only.
you MUST apply the stuff above.. because otherwise no one knows what is causing your problem..

(allthough i think it comes from a lack of memory on your server.. for to big images.. or your PHP not supporting an imagetype)
BUT it depends on YOUR server configuration for apache AND php.. (php.ini)

If you want to play around.. remove IN THAT FUNCTION ONLY all the @ before the commands.. getimagesize, imagecreatefromjpeg, imagerotate, imagejpeg and imagedestroy .. so @imagerotate( becomes imagerotate( without the @ and so on..
Then Rotate a jpg image.. and paste the error you get here.. (you are bound to get an error..IF not.. i\'ll explain you how to debug further.. but I think you should get an error message..
hope that helps
Luc


All times are GMT -5. The time now is 06:50 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97