Bulk Rotation, anyone?

scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Thu, 2012-05-03 15:40

For each user that ask if there was such a plugin, I tell them "unfortunately, no, and there's none available that's free or for sale." Personally, I'd pay for a standalone plugin that performs bulk rotation.

I came across an old thread (year 2008) http://gallery.menalto.com/node/68709 - the hack somewhat works with Gallery 2.3.2 but breaks (collision errors) afterwards.

Bulk Rotation, I hope I'll see you soon. If you can read, write and debug G2 code but require financial sponsorship of some sort to write such plugin, PLEASE let me know. Please! :) I'm not a millionaire or a well known company, but I can summon my user base and maybe get a significant support since this is a "hot, desperately in demand" plugin that I get asked plenty of times.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2012-05-03 18:45

It might make it to the next G2 release: https://github.com/dakanji/G2Project/issues/55

Or you could keep an eye on that repo and grab a download of the dev branch once you notice it has been merged in.

No time frames set unfortunately.

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-05-03 19:10

It is really much more advisable to rotate before uploading. Windows/OSx will actually rewrite the metadata so it is permanently rotated.
Rotating for display in G2 does not rotate for external display ie. slideshows

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Thu, 2012-05-03 21:12

Dayo & suprsidr: thanks for you responses!

I need to do more research what tools are available (free or paid) to perform bulk rotation offline before uploading.

Recently, I've been reading about big & small companies who sponsor features/enhancements in open source platforms they use, like FreeBSD. I'm neither a business person or someone earning 6 figures, I'm a forklift driver who take pride hosting G2 sites for friends/relatives/others for free - but that won't hinder me from exploring the possibility of sponsoring a developer or two to created a really useful tool that would benefit the entire G2 community.

What to do with the 100s of images that have been uploaded already into a G2 live site, that require all to be rotated for proper viewing, even the possibility of altering the original image EXIF data to make the rotation permanent would more ideal but that might be asking too much and pushing it.

For example, when I take lots of photos with my iPod touch and use PhotoSync ($1.199) to upload them in bulk via WebDAV, a significant amount of aren't rotated on the G2 side. Could this be an EXIF problem? or misconfiguration with the Graphics toolkit?

There's already bulk description editing, bulk tag editing and renaming - this Bulk Rotation feature, is going to be heavily used based on what I've been asked with my users recently and in the past.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-05-04 04:07

As suprsidr stated, things like rotation and cropping etc, should be done as part of the preparation stage before uploading.

However, I can imagine several situations/setups where people will find themselves with mis-rotated image on their G2.

This may be due to bulk uploading or automated uploading from devices such as camera phones for instance.

So while I have personally never needed it, I can see a need for such a feature which is why I added it as an issue to look into on the G2Project.

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-05-04 04:32

http://www.imagemagick.org/Usage/photos/#orient

I could forsee a setting in the IM admin to -auto-orient , but I don't have any insight on the other image toolkits.

-s

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-05-04 05:03

Auto rotation, even if limited to IM - jpegtran and jhead can do this as well, would be nice but I think that since they all depend on an exif tag that may or may not be present means there would always be cases where a user may want to rotate items manually.

--
dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-06-08 08:05

An implementation of this feature based on the old 2008 code has been added to the unofficial G2.4.0Beta1 code base. Testers and feedback required.

Click on the download link after following this unofficial G2.4.0Beta1 link. Note that the link points to an active development stream which may change from a stable to an unstable state without notice.
A semi permanent code base can be found by clicking on the download link after following this bulkRotate branch feature link.

--
dakanji.com

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Fri, 2012-06-08 19:18

hi Dayo,

G2.3.2 codebase, PHP 5.4.3, cleared Cache* in ~/lib/support/ and Site Admin > Maintenance

Edit Album > Rotate Items render these errors for me:

Warning: in_array() expects parameter 2 to be array, boolean given in /path/to/gallery2/modules/core/classes/Gallery.class on line 651

Warning: in_array() expects parameter 2 to be array, boolean given in /path/to/gallery2/modules/core/classes/Gallery.class on line 651

Fatal error: Call to undefined method GalleryAlbumItem::getMimeType() in /path/to/gallery2/modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class on line 277

Please advise, thanks!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-06-08 21:15

Confused by the "G2.3.2 code base" statement.

If you actually mean the unofficial G2.4.0Beta1 code base linked above, then please post your observations to the github issue tracker for this issue as related to that effort: https://github.com/dakanji/G2Project/issues/55.

For the actual officially released G2.3.2, you can leave that here. Unfortunately, I have too much going on to look into why that might not be working right now but perhaps someone else might be able to chip in.

--
dakanji.com

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Fri, 2012-06-08 22:58

heh, sorry about that part!

I'll setup a G2.4.0Beta1 multisite on my end - and I'll post any issues on the github issue tracker.

Thanks again!

__________________________________________________________
liberate your photos with Gallery, make the switch today!
https://pixi.me/