Page 2 of 2
Re: Thumbnails using images with transparency
Posted: 2014-01-31T04:49:08-07:00
by rpalmer
Well, I guess you can't win all the time. If however you guys could help me have a tiled checkerboard sized rgb jpg thumbnail on those it can then it will still be a win
I currently run
Code: Select all
convert -colorspace sRGB -thumbnail {X}x{Y} {in} {out}
X - desired width
Y - desired height
in - Input file
out - Output thumbnail file
Re: Thumbnails using images with transparency
Posted: 2014-01-31T05:20:30-07:00
by rpalmer
Duplicated reply by mistake so removed, sorry!
Re: Thumbnails using images with transparency
Posted: 2014-01-31T11:32:32-07:00
by fmw42
convert -thumbnail 80x80 -density 72 -units pixelsperinch in.png pattern:checkerboard +swap -composite out.jpg
You must tell the command how big to tile out the checkerboard. All you are doing is inserting the 8x8 checkerboard image onto your image.
This works for me.
convert in.png -thumbnail 80x80 -size 80x80 tile:pattern:checkerboard +swap -composite -density 72 -units pixelsperinch out1.jpg
Note that you should specify the input before resizing using -thumbnail. For eps input you must specify a density before the input . Output jpg units and should come just before the output.