Hello,

i have installed Imagemagick on Drupal for create Thumbnail of differents types of image files : eps, tif, pdf...
But, i haven't found documentation for that.
Can you explain me how render thumbnail for my uploaded files ?

Thanks for your help.

CommentFileSizeAuthor
#4 imagemagick-eps_support-1832278-4.patch9.12 KBandyf

Comments

kumkum29’s picture

Hello,

I reopen this issue for eps thumbnails.
I generate thumbnails for tiff files. But, If I upload an eps file, it does not generate any eps thumbnails in the "styles" directory.
Did you generate eps thumbnails with imagemagick? If yes, can you tell me how?

Thank you for your help.

I use media module + private files scheme

el_toro’s picture

Hi kumkum29, you can give the ImageField EPS module a try for handling eps files...

kumkum29’s picture

Hello el_toro,

thanks for your reply.
I found this module. In fact, it can work for eps file. For TIFF files I have no solution.

andyf’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.x-dev
Component: Documentation » Code
Category: Support request » Feature request
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new9.12 KB

I used this patch to let me work with EPS files; I don't see why it shouldn't work for other postscript files, but I haven't tested it. It uses the identify binary to work out the image's aspect ratio (configure the path in the normal place) and is only tested with IM 6.6.9-7. To actually render the image to a bitmap I'm using the File format switcher from ImageCache Actions.

It's worth mentioning that as well as patching IM, you'll need to allow the filetype to be uploaded (I'm using media 2.x which allows me to specify allowed mime types). You'll also want to do something to ensure the image is downloaded with the correct mimetype. You could rename the file; I'm adding an .htaccess ForceType to the style folder on hook_image_style_flush().

HTH

andyf’s picture

Btw you don't need a patch to use TIFFs - just use the File format switcher from ImageCache Actions.

mondrake’s picture

Status: Needs review » Closed (outdated)

Drupal 7 is EOL