PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > vBGallery Support > vBGallery Bug Reports > Bugs - vBulletin 3.6x

Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 1st, 2007, 04:46 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
[BUG] in image manipulation - missing error messages AND .. AND.. AND..

Just looked at imagemanipulation closer.. and found a couple of bugs when using GD!!!

1. Major
As far as I can see .. there is NO file type check if you want to rotate or flip an image..
only in editimage.php:
Code:
Content visible to verified customers only.
so IF you want to rotate a gif image that is in the $imgtypearray..

in functions_imageedit.php you have imagecreatefromjpeg where there should be a switch($extension) or filetype check... and then imagecreatefromgif or png... AND what about bmp and swf.. etc.. there are i think close to 18 types in the imagetypearray...

2. it is also resaved as jpg... imagejpeg.... you can save a gif as jpg.. but in that case you have to change the extension in the db... (or make another switch($extension) for saving..)



3. same with flip image!!

--> if its a non supported type.. there should be an error message.. or at least not allowing it to rotate or flip..

4. imagerotate function is only existing in php 4.30 and higher..
So there should be check if the function exists
nice solution would be to do a "flip both" if imagerotate does not exist and leave in imagetools only the option of rotating 180°) (what is what flip both does, only without using imagerotate)


QUICKFIX
so you dont get errors..
find in gallery/editimage.php:
Code:
Content visible to verified customers only.
and replace with:
Code:
Content visible to verified customers only.
Now the tools will only show if its a jpg.. and if your php version supports imagerotate... its not really satisfactory.. but it will give no errors.. ( added jpeg as file type that is NOT in the imagetypearray!!!)

more elegant could be not to use the function_exists part above and do a template edit to remove the rotation part, if the function imagerotate does not exist.. leaving the flip function only.. or to use an image rotation function that does not use imagerotate..
(but that goes beyond a quickfix)

Luc

Last edited by Luciano; November 1st, 2007 at 05:26 AM.
Luciano is offline  
Closed Thread


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 manipulation not working Exacto Installs and Upgrade - vBulletin 3.5.X 8 November 5th, 2007 08:35 AM
re: I get error messages agardonia Photopost Pro Installation & Upgrades 1 June 21st, 2005 07:36 AM
Image Manipulation ManagerJosh Installs and Upgrade - vBulletin 3.0.X 3 May 25th, 2005 10:05 AM
Bizarre error messages and missing links.. GrBear Installs and Upgrade - vBulletin 3.0.X 2 January 1st, 2005 12:34 PM


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

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