Gallery

From YobiWiki
Jump to navigation Jump to search

u6rX9I [url=http://hunt100.info]hunt100[/url] [url=http://hunt100.info/map.htm]hunt100 map[/url]

Gallery migration

Once you have migrated your Gallery1 to Gallery2 with the migration module

Enable URL Redirection under Apache webserver:

Ensure the mod_rewrite Apache module is enabled:
a2enmod rewrite
/etc/init.d/apache2 force-reload
  • Enable the module URL Rewrite in Gallery2
  • URL Rewrite administration -> Rules -> Migration -> activate
  • If you have troubles with url rewrite, especially if you touched the directory structure or established vhosts, deinstall completely the URL Rewrite module and reinstall it.

PG Theme

Jpegtran

Gallery1 used to use jpegtran to rotate automatically imported images in a lossless fashion.
Gallery2 doesn't :-(

You can install the module jpegtran for Gallery2

  • Uncompress it in /usr/share/gallery2/modules
  • Install it and activate it under the administration view of Gallery2
  • Install jpegtran (libjpeg-progs under Debian)
  • Test it under the administration view of Gallery2, there is a new jpegtran shortcut in the graph tools menu

Now this module does not automates anything when importing images but at least when you rotate manually a picture, it'll use jpegtran instead of the fat slow lossy ImageMagick rotation.

For rotations when importing, I do it with gthumb:

  • select all images (including those already with the correct orientation, don't bother selectiong only those to be rotated ;-) )
  • Tools -> Rotate Images -> + Adjust photo orientation + Apply to all images -> Apply