Page 1 of 1

rotation bug

Posted: 12 Dec 2008, 05:16
by eissap
After rotating an photo true the Imagevue back-end the photo is getting an strange color layer.
example:
http://www.sneakie.net/amber/#/content/ ... _1507.JPG/

anybody knows how to fix this ?

second: is it an option to create for instance an Adobe AIR application to manage you photo's off-line for uploading and creating thumbs (maybe future)?

Posted: 12 Dec 2008, 16:15
by Nick
Strange looks like some gd error when it tries to rotate the image. To resolve this i forsee your best bet is to reupload pre-rotated image.

Re: rotation bug

Posted: 12 Dec 2008, 23:13
by mjau-mjau
eissap wrote:second: is it an option to create for instance an Adobe AIR application to manage you photo's off-line for uploading and creating thumbs (maybe future)?
Sure, something like that has struck us before. We need to handle most important stuff first though ...

Not quite sure what you mean by "off-line". It would be a local client application, but I think it would connect to the server for management. It could create thumbs and resize images on client before upload.

Posted: 13 Dec 2008, 09:58
by eissap
I'll just upload them pre-rotated then. Because i tried it again and the same problem happened again. any advise on which (version) gd library i should use ?

I agree with you that the uploader could wait after the final is released :)

keep up the good work

Posted: 17 Dec 2008, 14:12
by eissap
I have checked the GD version and according to the webserver i'm using gd-2.0.35,1. Is this correct ?

Posted: 17 Dec 2008, 23:35
by mjau-mjau
eissap wrote:I have checked the GD version and according to the webserver i'm using gd-2.0.35,1. Is this correct ?
I am not sure ... If you uploaded the image pre-rotated, it would not be using the GD extension. I presume you had rotated it with some image tool like irfanview, acdsee or photoshop?

Posted: 21 Dec 2008, 10:45
by eissap
If i rotate it with "microsoft picture viewer" there is no problem. Only with the function in the imagevue

Posted: 21 Dec 2008, 14:14
by Nick
Yes, sorry this was more experimental, unfortunately GD makes image progressively worse every time. :/

Posted: 23 Dec 2008, 15:15
by lowray1975
There's a certain free image gallery product that includes a nice Java uploader tool. The tool not only allows you to resize and rotate, it allows mutliple uploads at once.

It's just a shame the product is so horrible. Imagevue destroys it. :twisted:

Posted: 23 Dec 2008, 21:25
by mjau-mjau
Our admin tool allows multiple uploads at once also ...

We will be considering some further management tools for future release. Perhaps eventually a client-side program that allows folder management, multiple file uploader with resizing capabilities, straight from your desktop ...

Posted: 31 Dec 2008, 06:10
by eissap
I have made a new rotation function which is working on my server.
It's not using GD anymore because GD cannot handle images larger then 1024 x 768.

I'm not sure if this will work on every server. but i'm hoping somebody is willing to try out.
You have to change 2 files.
admin/controllers/FileController.php
and
include/ivImage.class.php
In include/ivImage.class.php change the following
Code
$this->imageData = imagerotate($this->imageData, $angle, 0xFFFFFF);
to
passthru("/usr/local/bin/convert -rotate $angle $this->imagepath $this->imagepath");
and in admin/controllers/FileController.php add a comment to line number 149 like this
Code
 //$image->write();
I hope to hear from you guys and thanks for testing.
Feel free to you use it and adjust to your needs.

greetz,
Eissap

Posted: 31 Dec 2008, 06:18
by Nick
Well convert is command line interface to ImageMagick which is unix shell image manipulation too and it is the solution for all image manipulations, unfortunately we didnt include it in Imagevue, because we dont have resources right now to explain people how to set it up on their servers :/

And it doesnt work on windows afaik.

BTW. indexr, our pet project - http://indexr.googlecode.com supports it right from the beginning. But only for thumbnails, not rotation ofcourse.

Posted: 31 Dec 2008, 07:06
by eissap
Yes you are right on the imagemagick part.
Although it's not that hard to install, i can imagine that for shared hosting it's difficult to install.

so i think it's an option for people that do use imagemagick and want to rotate from within imagevue. and of course later on when X2 has fixed it it's quite simple to remove again. Though i think GD will never support it because of the limitation on 1024x768 pictures.

anyway i hope this will fix some problems for others as well.