Hi folks!
I am using ImageMagick as Graphics Toolkit, thumbnails seem to be created but not displayed. I saw in ImEnvironments.inc gallery uses
'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%', '+profile', '*', '%src%', '%dst%')
to create the thumbnails. Now my question is: where are those profiles gallery uses?
I think there are no profiles installed and so the thumbs are not converted correctly.
----
Gallery URL (optional): --
Gallery version: 2.0 beta 4 (CVS Snapshot of 1.8.2005)
Webserver (with version): Linux web 2.4.16
Datatabase (with version): MySQL 2.0.21
PHP version (eg 4.2.1): 4.3.9
phpinfo URL (optional): --
Graphics Toolkit(s): ImageMagick (Version 6.2.3-3)
Operating system: w2k SP4
Web browser/version: IE 6.0/Opera
G1 version (for migration bugs): --
Posts: 32509
this part isn't from me and i'm not a imagick expert:
i thought +profile '*' just removes the profiles (exif, iptc, .. data).
what has the profile to do with the colorspace?
could you post the error message?
Posts: 16
thx valiant, you're right but +profile * seems to work only if IM knows the profile.
My Images are saved from PhotoShop and they include a special profile for print.
http://www.imagemagick.com/www/command-line-options.html#profile
If +profile * is only used to remove all profiles it would bebetter to use -strip.
I'm using IM 6.2.3 is there an addition for ImEnvironments.inc for this version of IM? I only fond 6.1.3...
And sorry, I Cannot post an errormessage because there is no errormessage.
Posts: 32509
you said you have a "problem". please describe it.
if the problem is that it doesn't create thumbs, you should activate buffered debug mode in config.php and add such an image again, then you'll get the debug output.
as to your suggestion to use -strip: sounds good. will add this information to an open bug.
https://sourceforge.net/tracker/index.php?func=detail&aid=1247915&group_id=7130&atid=107130
Posts: 16
ok, I will try to explain my problem better:
When I upload a cmyk file (eps, tif, jpg, ...) gallery seems to create a thumbnail.
I don't know where the thumbs are stored, so I can't look if there is one.
But the Browser (equal if Win, Mac, ...) doesn't display the thumb.
If I download this not displayed thumb (works only on IE 5, Mac) I got a file with the originial filename and extension in cmyk (example: I upload Test.eps(cmyk), the created thumb is named Test.eps its colorspace is cmyk) but it is a .jpg file.
Here is the original eps-file: http://www.lw-wochenblatt.de/gallery/Test.eps
and here is the thumbnail gallery2 sends to the browser: http://www.lw-wochenblatt.de/gallery/Test_thumb.eps
The original is made with PhotoShop and contains a print specified cmyk profile.
Note: This is not the server gallery is installed on!
Posts: 32509
oh, that's like it should be.
if you go to site admin -> imagemagick, there's a checkbox for "CMYK JPEG". if checked and saved, G2 can create thumbnails of jpgs in the CMYK colorspace such that you can view them in the browser.
but G2 can't (not yet) create RGB thumbs for tiffs/eps.
if you'd like CMYK support for tiff and eps too, please file a feature request on http://sf.net/projects/gallery/
Posts: 16
OK, i did so and it works very well!
And I thought there is a general support for CMYK images.
alright, I will do so.
But wouldn't it be much easier to create the thumbs and scaled images general as an RGB image?
Posts: 32509
to quote mindless:
see: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=30510&highlight=cmyk
Posts: 16
@valiant: thx for your great and fast support again!
CMYK support for mime type image/tiff is already build in (see last page of the older thread you posted).
Is there any chance to get application/postscript, application/pdf and other mime types handled the same way like tiff-cmyk and jpeg-cmyk?
PS: there are already feature requests for ps-formats:
http://sourceforge.net/tracker/?group_id=7130&atid=357130&func=detail&aid=766313
and
http://sourceforge.net/tracker/?group_id=7130&atid=357130&func=detail&aid=472705
Posts: 32509
see:
http://sourceforge.net/tracker/index.php?func=detail&aid=1208790&group_id=7130&atid=357130
if you want cmyk support for other file types, you'll have to file a feature request and someone has to work on it. so you won't get it any time soon, because we're contentrating on bug fixes and docs. but you should still file the feature request, such that it doesn't get forgotten.
Posts: 16
ok, many thanks for your help.
Posts: 1
First I have to say "Thank you very much for this gallery-script, it's great!"
But I'm also having some problems with CMYK, in special with PostScript-Images in CMYK colorspace (eps-files).
After uploading an eps a thumbnail and even a resized version is created, but gallery won't show the fullsize images. In Firefox an alternative Text is displayed (font-size:1px or lower), IE7 shows the typical red cross for not image errors.
After a few hours of searching for this issue I still wonder, why thumbnails and resized versions are created, but the original version can't be viewed.
It's nearly driving me crazy (and I hope someone's understanding my english).
ImageMagick says it's supporting the following MIME-types:
image/gif
image/jpeg
image/pjpeg
image/jp2
image/jpg2
image/jpx
image/png
image/tiff
image/svg+xml
image/bmp
application/pdf
application/postscript
application/photoshop
image/x-photo-cd
image/wmf
image/jpeg-cmyk
image/tiff-cmyk
application/photoshop-cmyk
CMYK-support ist activated.
System-Information:
Gallery-Version = 2.2.2 Kern 1.2.0.4
PHP-Version = 5.1.6 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.1.6
Datenbank = mysqli 5.0.24a-community-nt, lock.system=database
Werkzeuge = Exif, LinkItemToolkit, Thumbnail, Gd, NetPBM, Ffmpeg, ImageMagick
Betriebssystem = Windows NT 5.1 build 2600 (XP prof)
Posts: 26
I think thumbnails are created in CMYK colors, for PS, EPS.
Firefox3 is the only one able to display those pictures. Firefox2, IE6 nor IE7 can't display CMYK pictures.
We should change CMYK thumbnails to RGB.
-----------
P.
Posts: 8339
I did just that on our site. Since IE and others(safari, opera...) still cannot view CMYK colorspace, I convert all thumbs/resizes to RGB.
gallery2/modules/imagemagick/classes/ImageMagickToolkit.class line ~529
to:
Its harmless if it wasn't required in the first place.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2