PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old February 28th, 2007, 10:21 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
second bug in rotate image + sort of fix

For GD users:

just found a second bug in editimage --> rotate and flip image.

it does NOT work with gif & png images..

Why.. because it only does a imagecreatefromjpeg only (even if the image is a gif or png) .. what happens? it simply doesnt rotate or flip the image, BUT it does modify the height and width of the picture in the database, resulting in a messy looking picture.. ( you can repair it in maintainance by recalculating imagesizes for the whole gallery)

here is a quick dirty fix so that users can't use it if it is not a jpg:
in editimage.php find:
Code:
Content visible to verified customers only.
and replace with:
Code:
Content visible to verified customers only.
it is not a real fix! it will only keep users from trying to rotate gif and png pictures which wont work with the actual code.


Make sure you applied the other fix for gd2 imagerotating i posted here:
bug and fix in editimage

hope that helps

Luc

PS: as I dont use imagemagick (or what its called ) i have no clue if if imagerotation works there.
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
Bug and Fix for "replace image" in editimage Luciano How Do I? - vBulletin 3.6x 0 February 18th, 2007 02:58 PM
5.2 bug, can you still help me fix? Johnny Doomo Photopost Pro Bug Reports 0 September 4th, 2006 04:29 PM
Possible typo/bug in showphoto + fix(NOT A BUG) Sebbb Photopost Pro Bug Reports 1 July 12th, 2005 06:01 PM
Rotate One Image AllenAyres Photopost Pro How Do I...? 8 February 8th, 2005 05:17 PM


All times are GMT -5. The time now is 10:44 PM.

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