Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

plg
2012-04-02 16:01:00

rvelices wrote:

however it think you forgot the mysql structure.sql ....

added in [Subversion] r13849, thank you for your code review.

rvelices
2012-04-02 08:55:25

plg wrote:

rvelices, please tell me what you think.

I don't think we have to manage the manual rotation right now, we can plan it in the code and have a plugin to manage it later.

[Subversion] r13848
ok for manual rotation for later
however it think you forgot the mysql structure.sql ....

plg
2012-04-01 02:11:16

I have started to implement the automatic rotation with [Subversion] r13843 but there are still problems : if you generate XS first and then XXS, the photo is rotated twice. I suppose this is because XXS is generated from XS and the rotation angle is reapplied.

rvelices, please tell me what you think.

I don't think we have to manage the manual rotation right now, we can plan it in the code and have a plugin to manage it later.

rvelices
2012-03-02 06:17:04

plg wrote:

rvelices, does it mean that now we'll have to connect to the database in i.php to check if images.rotation?

there is already a short db connection in i.php (1 single query to retrieve #images.coi width and height after which the db is closed)
so we just need to add the rotation retrieval ...

plg
2012-03-01 21:44:11

After discussion with rvelices, we have decided to add a new database column images.rotation:

* (from exif) 0 = no rotation
* (from exif) 1 = 90 clockwise
* (from exif) 2 = 180
* (from exif) 3 = 270 clockwise
* (manual) 4 = no rotation
* (manual) 5 = 90 clockwise
* (manual) 6 = 180
* (manual) 7 = 270 clockwise

+ ability to automatically rotate original if ImageMagick is available
+ user interface to set rotation (to set value to 4,5,6,7)

rvelices, does it mean that now we'll have to connect to the database in i.php to check if images.rotation?

plg
2012-01-12 21:55:01

rvelices wrote:

plg wrote:

In my opinion, the new multiple size should not make more difficult the follow orientation when cropping option.

Yes but again we need to know in the "core" part that a rotation is required in order to compute the corect sizes ... And here it becomes difficult because we need to have an #images.rotation field

I think I have to read your post once again because I don't see why we have no problem with that in Piwigo 2.3 and it becomes a problem with multisize :-/

rvelices
2012-01-12 21:47:49

plg wrote:

In my opinion, the new multiple size should not make more difficult the follow orientation when cropping option.

Yes but again we need to know in the "core" part that a rotation is required in order to compute the corect sizes ... And here it becomes difficult because we need to have an #images.rotation field

plg
2012-01-12 20:55:10

From post:126678

rvelices wrote:

Concerning f (rotation / orientation) we have two ways:

1. Rotate the original image based on exif orientation - the admin will be able to rotate afterwards if he wants

Advantage: One easy step, no db change required, simpler code in piwigo core
Disadvantage: We loose metadata if only gd is available

2. Save the rotation angle in the db from Exif during sync/upload process. Let the admin eventually manually overwrite it. Perform computation of resulting derivative sizes and rotate the derivative based on this value.

Advantage: Originals are not touched
Disadvantage: Complicates a lot the piwigo core (during meta sync, ask if the admin chose a manual rotation angle?, crop/sizing algo more cumbersome, center of interest need also rotation etc ...)

Any feedback on point f?

How does Piwigo 2.3 works? The original is not modified, only the resized (websize+thumbnail) are rotated.

I think we should keep this behavior.

With Piwigo 2.3, if the photo needs a rotation (based on the Orientation EXIF tag) then Piwigo applies this rotation when creating the websize and Piwigo updates the Orientation EXIF tag. Then the thumbnail is created from the websize, no rotation is required.

Only the plugin extension:578 can optionnaly rotate the original photo.

In my opinion, the new multiple size should not make more difficult the follow orientation when cropping option.

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013