Search found 61 matches

by mhulse
2016-12-22T17:50:53-07:00
Forum: Users
Topic: [solved] Batch convert images so they are all JPG with minimal loss of data
Replies: 6
Views: 6096

Re: Batch convert images so they are all JPG with minimal loss of data

Hi snibgo! Thanks for the quick reply, I really appreciate it!!! So, looks like I should do: convert input.png -quality 100 output.jpg Do you know if that will retain things like resolution? The original images may have various PPI settings. Basically, all I want to do is normalize the file extensio...
by mhulse
2016-12-22T17:39:06-07:00
Forum: Users
Topic: [solved] Batch convert images so they are all JPG with minimal loss of data
Replies: 6
Views: 6096

[solved] Batch convert images so they are all JPG with minimal loss of data

I have a big folder of images (jpg, png, tif, etc.) I need to convert all of them so they are all JPGs. I am writing a script that checks the image extension and converts to JPG only if not already a JPG format. Questions: 1. If the file extension is .jpeg, .jif, .jfif, can I just change the file na...
by mhulse
2016-12-04T22:21:09-07:00
Forum: Users
Topic: How to batch convert images to (s)RGB with profile?
Replies: 3
Views: 7207

Re: How to batch convert images to (s)RGB with profile?

Wow! Thanks so much for the help Fred, I really appreciate it!!!! Excellent tips! I will take a stab at writing a script to do this, like you suggested. If I make anything worthy of sharing, I will post back here with the source. Thanks a billion for all the details. I'm going to experiment and may ...
by mhulse
2016-12-04T20:56:56-07:00
Forum: Users
Topic: How to batch convert images to (s)RGB with profile?
Replies: 3
Views: 7207

Re: How to batch convert images to (s)RGB with profile?

convert \ images/* \ -strip \ -colorspace RGB \ +profile "icm" \ -profile /path/to/AdobeRGB1998.icc output/ Gives me: $ identify -verbose crop/test.jpg Image: crop/test.jpg Format: JPEG (Joint Photographic Experts Group JFIF format) Mime type: image/jpeg Class: DirectClass Geometry: 2622x...
by mhulse
2016-12-04T20:19:01-07:00
Forum: Users
Topic: How to batch convert images to (s)RGB with profile?
Replies: 3
Views: 7207

How to batch convert images to (s)RGB with profile?

Version: ImageMagick 6.9.6-5 Q16 x86_64 2016-11-15 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib I hav...
by mhulse
2016-10-27T22:33:07-07:00
Forum: Users
Topic: Convert images to PDF, remove transparency?
Replies: 10
Views: 9661

Re: Convert images to PDF, remove transparency?

This is interesting news: http://stackoverflow.com/a/31593921/922323 Use Ghostscript with the pdfwrite device to produce a new PDF based on the input PDF. Set CompatibilityLevel to 1.3 so that transparency will be 'flattened' (ie rendered to bitmap). Or use one of the rendering devices to produce a ...
by mhulse
2016-10-27T22:17:27-07:00
Forum: Users
Topic: Convert images to PDF, remove transparency?
Replies: 10
Views: 9661

Re: Convert images to PDF, remove transparency?

A quick tests does show that quality makes a difference for JPG Ah, that's good to know! Thank you for testing. I do not see much difference the "quality" of these two when setting the density --- both scale nicely when the window is enlarged as it should be in a PDF. I suspect the only d...
by mhulse
2016-10-27T22:11:48-07:00
Forum: Users
Topic: Convert images to PDF, remove transparency?
Replies: 10
Views: 9661

Re: Convert images to PDF, remove transparency?

It is not your input image. It did not matter with JPG which does not support transparency. It is the delegate being used to write the PDF. IM uses Ghostscript for PDF. Not sure if just reading or both reading and writing. The delegates.xml file shows So it might that one of these forces it to writ...
by mhulse
2016-10-27T20:46:01-07:00
Forum: Users
Topic: Weird results when cropping and resizing
Replies: 10
Views: 8580

Re: Weird results when cropping and resizing

anthony wrote:A good summary of normal resize cropping techniques is in IM Examples
Thumbnails...
http://www.imagemagick.org/Usage/thumbnails/#fit

A final summery is in
http://www.imagemagick.org/Usage/thumbn ... it_summery
Thank you Anthony! I really appreciate the help! Reading up on that now. :)
by mhulse
2016-10-27T20:42:31-07:00
Forum: Users
Topic: Convert images to PDF, remove transparency?
Replies: 10
Views: 9661

Re: Convert images to PDF, remove transparency?

Hi fmw42, thank you so much for your help, I really appreciate it!!! :) What is your IM version and platform? Please always provide that information when asking questions. See http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=9620 Oh, shoot! Sorry about that! I will be sure to incl...
by mhulse
2016-10-27T18:53:59-07:00
Forum: Users
Topic: Convert images to PDF, remove transparency?
Replies: 10
Views: 9661

Convert images to PDF, remove transparency?

Hello, I am using these commands to create a PDF from a directory full of JPGs and PNG32s: convert \ ${args.inputFiles} \ -quality 100 \ -density 300x300 \ -compress jpeg \ -units PixelsPerInch \ -background white \ -alpha remove \ +repage \ ${args.outputPdf} For some reason, the system I am uploadi...
by mhulse
2016-10-23T23:08:51-07:00
Forum: Users
Topic: Weird results when cropping and resizing
Replies: 10
Views: 8580

Re: Weird results when cropping and resizing

See the docs, http://www.imagemagick.org/script/command-line-processing.php#geometry. The caret "^" does this: With the ^ operator, one of those dimensions will match the requested size, but the image will likely overflow the dimensions requested to preserve its aspect ratio. Awesome, tha...
by mhulse
2016-10-23T22:59:20-07:00
Forum: Users
Topic: Weird results when cropping and resizing
Replies: 10
Views: 8580

Re: Weird results when cropping and resizing

GeeMack wrote: The resize with the "^" caret will fill that 2622x2660 space the best it can, even if it has to go outside the bounds in one direction or other.
Ahh, I see! I assumed it would go outside bounds and then crop to the exact size. Thank you for clarification. :)
by mhulse
2016-10-23T22:33:38-07:00
Forum: Users
Topic: Weird results when cropping and resizing
Replies: 10
Views: 8580

Re: Weird results when cropping and resizing

So, after fixing the image's orientation using jhead, this combination of commands ended up working out for me: convert \ "uncropped.jpg" \ -auto-orient \ +repage \ -crop 3072x3115+0+9 \ -resize 2622x2660^ \ -extent 2622x2660 \ -density 304x304 \ -quality 100 \ -depth 8 \ -units PixelsPerI...
by mhulse
2016-10-23T20:07:16-07:00
Forum: Users
Topic: Weird results when cropping and resizing
Replies: 10
Views: 8580

Re: Weird results when cropping and resizing

snibgo wrote:Try "+repage" after "-auto-orient".
Awesome! Thank you for the tip!