PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 28th, 2005, 07:12 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 21
Image manipulation not working

When I try to flip a image 90, 180, 270, degrees I just get a blank white page.
Exacto is offline   Reply With Quote
Old December 28th, 2005, 08:54 AM   #2 (permalink)
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,229
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Your settings for the server are correct in the gallery ?
- GD2 /1
- Imagemagick
Zachariah is offline   Reply With Quote
Old December 28th, 2005, 05:30 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 21
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.
Exacto is offline   Reply With Quote
Old December 28th, 2005, 06:10 PM   #4 (permalink)
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,229
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
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.
Zachariah is offline   Reply With Quote
Old December 28th, 2005, 06:50 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 21
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
Exacto is offline   Reply With Quote
Old October 31st, 2007, 06:18 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
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?
tintin74 is offline   Reply With Quote
Old November 1st, 2007, 05:28 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Posts: 464
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
Old November 5th, 2007, 02:23 AM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
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
tintin74 is offline   Reply With Quote
Old November 5th, 2007, 09:35 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Posts: 464
Quote:
Originally Posted by tintin74 View Post
Thank you Luciano.

I'm running vbGallery and not photopost.
we are both talking about vbgallery..

Quote:
Originally Posted by tintin74 View Post
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($tempimage becomes imagerotate($tempimage 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

Last edited by Luciano; November 5th, 2007 at 09:40 AM.
Luciano is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Protection Not Working.. jdearing Photopost Pro Installation & Upgrades 4 July 29th, 2005 05:54 PM
Image Manipulation ManagerJosh Installs and Upgrade - vBulletin 3.0.X 3 May 25th, 2005 11:05 AM
Big image popup not working msimplay Photopost Pro Installation & Upgrades 4 March 6th, 2005 09:44 AM
How do I get Image Magic working? MonsterMaxx How Do I? - vBulletin 3.0.X 2 January 21st, 2005 01:23 PM


All times are GMT -5. The time now is 06:12 PM.

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