I've been playing around a bit with G2 and must say that I'm impressed with how it is all coming along.
The only real problem I seem to be having at the moment is that I can't seem to import TIFF's into G2.
When trying to import a TIFF stored on the local server, I get the error shown at the end of this post.
I'm using CVS as of today with Apache 2 and Php 4. ImageMagick version is 5.5.7 and seems to support TIFF's as running 'convert DSCF0071.TIF test.jpg' creates two JPEG's that I can view fine (one about 640x480 and the other a smaller thumbnail). However, I do get the following output from convert:
'convert: unknown field with tag 34665 (0x8769) ignored. (DSCF0071.TIF).'
Any help would be appricated very much!
Cheers,
Kent
Here is the error from G2 when I go to import the TIFF:
Warning: getimagesize(): Read error! in /var/www/dev/gallery2/modules/core/classes/GalleryPlatform.class on line 406
Error (ERROR_TOOLKIT_FAILURE)
in modules/imagemagick/classes/ImageMagickToolkit.class at line 184 (gallerystatus::error)
in modules/imagemagick/classes/ImageMagickToolkit.class at line 56 (imagemagicktoolkit::_getimagedimensions)
in modules/core/classes/GalleryDerivativeImage.class at line 187 (imagemagicktoolkit::getproperty)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 591 (galleryderivativeimage::rebuildcache)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 569 (galleryderivativehelper_advanced::rebuildcache)
in modules/core/classes/GalleryCoreApi.class at line 729 (galleryderivativehelper_advanced::rebuildcache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 63 (gallerycoreapi::rebuildderivativecache)
in modules/core/classes/GalleryCoreApi.class at line 715 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
in modules/core/ItemAdmin.inc at line 66 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
in modules/core/classes/GalleryView.class at line 211 (itemadminview::loadtemplate)
in main.php at line 257 (itemadminview::doloadtemplate)
in main.php at line 24
Posts: 7994
Can you do me a favor and file this as a bug in the v2.0-pre-alpha category and attach the TIFF that is failing? Thanks!
Posts: 19
No probs.
Bug #901121 added.
Posts: 7994
Ah ha! This is a multi-scene TIFF so it's got multiple images in it. When ImageMagick converts it to JPEG, we wind up with *two* images! That confuses the heck out of the module. I've now changed the code to always use scene #0 which fixes the problem. Nice curve ball you threw me there
As an added bonus, I beefed up a lot of the image processing code so that if you give G2 a bad image it will treat it as an UnknownItem instead of a PhotoItem. Also, if a graphics operation fails while creating a thumbnail or resize, we now have a nifty little "broken" image that we display instead of just bombing.
All of this is goodness -- thanks for posting the problem, CaCtus491!