Search found 20 matches

by jedierikb
2015-09-29T19:18:20-07:00
Forum: Users
Topic: tiling an image at fixed size with "extra" border
Replies: 1
Views: 2263

tiling an image at fixed size with "extra" border

I want to divide an image into equally sized tiles, and using this command: convert -crop 500x500 obama.jpg o_%d.png It works great. The "extra" slivers at the end are as expected. However, I want to add 1px more around each tile. The result should be that each adjacent tile has the same overlapping ...
by jedierikb
2015-07-17T14:22:32-07:00
Forum: Developers
Topic: generating draw-rectangle image blank image in cmyk
Replies: 4
Views: 5433

Re: generating draw-rectangle image blank image in cmyk

ImageMagick 6.9.1-8 Q16 x86_64
by jedierikb
2015-07-17T14:12:18-07:00
Forum: Developers
Topic: generating draw-rectangle image blank image in cmyk
Replies: 4
Views: 5433

generating draw-rectangle image blank image in cmyk

convert -set units PixelsPerInch -density 300 -size 1200x1800 xc:#fff -fill xc:#f00 -draw 'rectangle 0 0 100 100' -black-point-compensation -intent Relative -profile USWebCoatedSWOP.icc test.tiff The following code is producing an image which, when opened in photoshop, presents me with a warning ...
by jedierikb
2015-07-14T14:07:55-07:00
Forum: Developers
Topic: converting tif to png with -profile not working
Replies: 1
Views: 3926

converting tif to png with -profile not working

ImageMagick 6.9.1-8 Q16 x86_64 2015-07-14 input: http://alumni.media.mit.edu/~erikb/tmp/rgb_exp/front2.tif output: http://alumni.media.mit.edu/~erikb/tmp/rgb_exp/out2.png When I run this: convert front2.tif -profile sRGB_IEC61966-2-1_black_scaled.icc out2.png convert: Incompatible type for ...
by jedierikb
2015-07-07T13:48:45-07:00
Forum: Bugs
Topic: new transparent image with border is all border color
Replies: 1
Views: 2499

new transparent image with border is all border color

Code: Select all

convert -size 200x200 xc:none -bordercolor purple -border 100x100 test.png
creates an entirely purple image. Was expecting a purple border around a transparent image.

Version: ImageMagick 6.9.1-4 Q16 x86_64 2015-06-03 on OSX
by jedierikb
2014-01-13T07:15:18-07:00
Forum: Bugs
Topic: unable to crop image
Replies: 4
Views: 7649

Re: unable to crop image

That was it, thank you. I am guessing that the image file does not have trustworthy sizing information without the repage command?
by jedierikb
2014-01-10T13:34:32-07:00
Forum: Bugs
Topic: unable to crop image
Replies: 4
Views: 7649

unable to crop image

I have two 1095x645 png images which load fine in any web browser. When I run this command on the first image, it crops the image. convert img1.png -crop 20.7058823529%x20.8%+59.3129411765+350.88 img1-crop.png But when I run the same command on the second image, I get an error. convert img2.png ...
by jedierikb
2013-08-21T14:19:52-07:00
Forum: Users
Topic: combine crop and scale into one command?
Replies: 3
Views: 4416

combine crop and scale into one command?

Currently, I am using two commands, and an intermediate temporary file, to crop and scale images. convert src.jpg -crop 50%x50%+10+10 intemediate.jpg convert intemediate.jpg -distort Resize 100\!x1000\! output.png Is there a good way to combine these two commands into one command and to prevent the ...
by jedierikb
2013-04-25T14:19:39-07:00
Forum: Users
Topic: converting no icc to cmyk?
Replies: 5
Views: 6415

Re: converting no icc to cmyk?

Ha.. actually, looks like it was actually

Code: Select all

-black-point-compensation -intent Relative
by jedierikb
2013-04-25T13:35:11-07:00
Forum: Users
Topic: converting no icc to cmyk?
Replies: 5
Views: 6415

Re: converting no icc to cmyk?

Wow, thanks. I used sRGB_IEC61966-2-1_black_scaled.icc and got much closer to the output in photoshop. It appears that Photoshop uses, as default, an option called intent saturation . If I change the preferences in photoshop in the Convert to Profile menu from intent saturation to intent perceptual ...
by jedierikb
2013-04-25T12:24:19-07:00
Forum: Users
Topic: converting no icc to cmyk?
Replies: 5
Views: 6415

Re: converting no icc to cmyk?

This code produces images which open in photoshop, and which have the right profile, but their colors are slightly off...

Code: Select all

convert src_rgb.jpg +profile icm -profile sRGB_v4_ICC_preference.icc -profile USWebUncoated.icc src_cmyk.jpg
by jedierikb
2013-04-25T12:13:27-07:00
Forum: Users
Topic: converting no icc to cmyk?
Replies: 5
Views: 6415

converting no icc to cmyk?

I need to simulate opening an RGB file in photoshop and converting to USWebCoatedSWOP.icc My attempts with convert are not working. For this example, assume src_rgb.jpg does not have an embedded profile. convert src_rgb.jpg -profile USWebCoatedSWOP.icc cmyk.jpg When I try to open this in Photoshop ...
by jedierikb
2012-12-13T21:09:35-07:00
Forum: Users
Topic: converting a png with an ICC profile?
Replies: 14
Views: 32670

Re: converting a png with an ICC profile?

and, to add the opacity back to the converted image:

Code: Select all

convert dest_cmyk.png src_rgb.png -compose copy-opacity -composite dest_cmyk_alpha.png
by jedierikb
2012-12-13T20:15:51-07:00
Forum: Users
Topic: converting a png with an ICC profile?
Replies: 14
Views: 32670

Re: converting a png with an ICC profile?

I think I am able to accomplish what I set out to do, albeit without alpha channel support, with these steps: convert src_rgb.png src_rgb.jpg convert src_rgb.jpg +profile icm -profile sRGB_v4_ICC_preference.icc -profile USWebUncoated.icc src_cmyk.jpg convert -profile sRGB_v4_ICC_preference.icc src ...