Search found 23 matches

by mmlenz
2016-12-13T07:25:16-07:00
Forum: PerlMagick
Topic: Resample broken?
Replies: 1
Views: 23238

Re: Resample broken?

Bump. Still stumped on this one.
by mmlenz
2016-12-02T11:31:17-07:00
Forum: PerlMagick
Topic: Resample broken?
Replies: 1
Views: 23238

Resample broken?

#!/usr/bin/perl use strict; use warnings; require Image::Magick; $ARGV[0] || die; # obtain image data my $magick = Image::Magick->new(); $magick->Read($ARGV[0]) && die; my $x = $magick->Get('x-resolution'); my $y = $magick->Get('y-resolution'); print "x = $x, y = $y\n"; if ($x != $y) { $magick ...
by mmlenz
2016-11-16T12:56:36-07:00
Forum: PerlMagick
Topic: write out specific pages (scenes)
Replies: 1
Views: 20328

Re: write out specific pages (scenes)

I think I see what I need to do. I need to read them using the bracket syntax and write them out individually.
by mmlenz
2016-11-16T12:36:01-07:00
Forum: PerlMagick
Topic: write out specific pages (scenes)
Replies: 1
Views: 20328

write out specific pages (scenes)

Working with multi-page fax tiffs and I need to write out this file into 3 different multi-page fax tiffs:

tif 1 = page 1 & 2
tif 2 = page 3, 4 & 5
tif 3 = page 6, 7

What I can't figure out is how to write multiple pages/scenes to a single fax tif. Yes, I need to do it using perlmagick.
by mmlenz
2014-08-05T06:34:14-07:00
Forum: Users
Topic: fax tif makes IM consume gigs of memory, pins cpu
Replies: 6
Views: 6440

Re: fax tif makes IM consume gigs of memory, pins cpu

Kind of related but is there a way to have convert output the total resources used for a run? I need to put some sane limits on how much memory and disk space IM can use.
by mmlenz
2014-08-04T11:08:25-07:00
Forum: Users
Topic: fax tif makes IM consume gigs of memory, pins cpu
Replies: 6
Views: 6440

Re: fax tif makes IM consume gigs of memory, pins cpu

I ended up using the output from: $ identify -format '%[fx:resolution.x/resolution.y]' image.tif[0] to test == 1 If the resolutions are symmetrical I don't do the resampling. If it's != 1 (faxed) then I resample. convert appears to "do the right thing" when the resample is left off for the 1x1.
by mmlenz
2014-08-04T06:49:55-07:00
Forum: Users
Topic: fax tif makes IM consume gigs of memory, pins cpu
Replies: 6
Views: 6440

Re: fax tif makes IM consume gigs of memory, pins cpu

I was looking through our code and the reason I was doing the resample is because we also get fax tifs with the non-symmetrical resolution (200x100). So if you use that convert command (without the resample) on one of those 200x100 fax tifs you end up with an image that is squashed vertically. I ...
by mmlenz
2014-08-04T05:45:47-07:00
Forum: Users
Topic: fax tif makes IM consume gigs of memory, pins cpu
Replies: 6
Views: 6440

fax tif makes IM consume gigs of memory, pins cpu

I can't post the image itself at the moment because it contains private info (I'll see if I can find out from the customer what software is generating it and also get an sample image) but here is a verbose identify. Maybe someone can spot something in the meantime. OS is Ubuntu 14.04 up-to-date. I ...
by mmlenz
2013-09-06T11:07:47-07:00
Forum: Users
Topic: broken multipage tiff to single page tiff conversion.
Replies: 1
Views: 3382

Re: broken multipage tiff to single page tiff conversion.

Figured it out on my own. You have to force it with +adjoin. But of course the version of IM we are running in production doesn't appear to work (6.6.0 vs 6.6.9 that I tested with). Oh well. If I just do something like $ convert source.tif temp-source.tif it fixes the broken file and it processes ...
by mmlenz
2013-09-06T10:48:37-07:00
Forum: Users
Topic: broken multipage tiff to single page tiff conversion.
Replies: 1
Views: 3382

broken multipage tiff to single page tiff conversion.

Yes. We all have to deal with f'd up images on a daily basis. Here is my conundrum. $ identify source.tif source.tif[132] TIFF 2550x3300 2550x3300+0+0 1-bit PseudoClass 2c 339KB 0.000u 0:00.000 source.tif[133] TIFF 2550x3300 2550x3300+0+0 1-bit Bilevel DirectClass 339KB 0.000u 0:00.000 source.tif ...
by mmlenz
2013-04-22T12:08:57-07:00
Forum: Users
Topic: fax tiff to jpg, dealing with multiple resolutions
Replies: 4
Views: 7002

Re: fax tiff to jpg, dealing with multiple resolutions

WORKS! Thanks so much! Since these are just thumbnails and image previews I will use -resample 200
by mmlenz
2013-04-22T10:06:57-07:00
Forum: Users
Topic: fax tiff to jpg, dealing with multiple resolutions
Replies: 4
Views: 7002

Re: fax tiff to jpg, dealing with multiple resolutions

-resize 400x400 should produce images that preserve the aspect ratio and not distort the image. The result will resize the larger of your image dimensions to 400 and the other will scaled according to the aspect ratio. I suspect you have a bug or problem with one of your input images. Does either ...
by mmlenz
2013-04-22T06:38:24-07:00
Forum: Users
Topic: fax tiff to jpg, dealing with multiple resolutions
Replies: 4
Views: 7002

fax tiff to jpg, dealing with multiple resolutions

I'm using: convert -quiet source.tif -resize 400x400 low-%d.jpg (with the above I'm using -resize 400x400 to limit the max width/height of the resulting image) To convert the following: source-A.tif Geometry: 1728x2135+0+0 Resolution: 204x196 source-B.tif Geometry: 1728x1097+0+0 Resolution: 204x98 ...
by mmlenz
2012-06-15T08:05:49-07:00
Forum: Users
Topic: building --with-gslib what does this actually accomplish?
Replies: 12
Views: 22385

Re: building --with-gslib what does this actually accomplish

Where did you see it doesn't support CMYK? I see multiple references to poppler and CMYK with a google search. Then again you guys are the image experts, I'm just a user/developer.
by mmlenz
2012-06-15T06:57:04-07:00
Forum: Users
Topic: building --with-gslib what does this actually accomplish?
Replies: 12
Views: 22385

Re: building --with-gslib what does this actually accomplish

Perhaps you like to try and create a delegate for a poppler utility, and publish it here. Users can add delegates using the ".magick/delegate.xml file from their UNIX home. See Delegates http://www.imagemagick.org/Usage/files/#delegates Some postscript delegate changes are shown in http://www ...