Search found 22215 matches

by fmw42
2017-12-10T12:29:28-07:00
Forum: Users
Topic: Alpha multiplying broken since upgrade to 7.x
Replies: 10
Views: 206

Re: Alpha multiplying broken since upgrade to 7.x

I believe there is a bug in IM 7. The command should work in either version. tmp.png: http://www.fmwconcepts.com/misc_tests/composite_bug/tmp.png test-gradient.png: http://www.fmwconcepts.com/misc_tests/composite_bug/test-gradient.png IM 6.9.9.26: This works fine convert tmp.png test-gradient.png -c...
by fmw42
2017-12-09T15:33:43-07:00
Forum: Users
Topic: Check single column of pixels
Replies: 6
Views: 140

Re: Check single column of pixels

Snibgo left off the final "info:" at the end of the command. Try

Code: Select all

magick image02.jpeg -gravity north -crop 1x+0+0 +repage -format "%[fx:standard_deviation]\n" +write info: -scale 1x1! -format "%[pixel:u.p{0,0}]\n" info:
by fmw42
2017-12-09T15:28:06-07:00
Forum: Users
Topic: Crop image based on coordinates from a "-trim +repage" of a different image?
Replies: 14
Views: 226

Re: Crop image based on coordinates from a "-trim +repage" of a different image?

How do you crop your montage? Do you resent the virtual canvas with +repage? Does this help? cropv=`convert /dev/shm/masktmp-${original}.gif +repage -format "%@" info:` convert "${original}" +repage -gravity northwest -extent $expandvar -crop $cropv +repage "${original/.jpg/-cropped.jpg}" I am reall...
by fmw42
2017-12-09T13:52:25-07:00
Forum: Users
Topic: Crop image based on coordinates from a "-trim +repage" of a different image?
Replies: 14
Views: 226

Re: Crop image based on coordinates from a "-trim +repage" of a different image?

Perhaps the location of the square is not being offset properly when resizing to full resolution. But you always use -gravity center before extent. That may be the issue. If you make your square from the top left of the thumbnail and resize, then you should use -gravity northwest. But I really do no...
by fmw42
2017-12-09T12:39:50-07:00
Forum: Users
Topic: Crop image based on coordinates from a "-trim +repage" of a different image?
Replies: 14
Views: 226

Re: Crop image based on coordinates from a "-trim +repage" of a different image?

What is the purpose of the -extent? If you extend before the crop, then your cropv values will be offset from the exenteded image if you are changing its size?
by fmw42
2017-12-09T11:58:29-07:00
Forum: Users
Topic: Crop image based on coordinates from a "-trim +repage" of a different image?
Replies: 14
Views: 226

Re: Crop image based on coordinates from a "-trim +repage" of a different image?

try convert "${original}" -gravity center -extent $expandvar -crop $( convert /dev/shm/masktmp-${original}.gif -format "%@" info: ) +repage "${original/.jpg/-cropped.jpg}" But you do not gain anything from just keeping two lines cropv=`convert /dev/shm/masktmp-${original}.gif -format "%@" info:` con...
by fmw42
2017-12-08T20:34:15-07:00
Forum: Users
Topic: Crop image based on coordinates from a "-trim +repage" of a different image?
Replies: 14
Views: 226

Re: Crop image based on coordinates from a "-trim +repage" of a different image?

In imagemagick alpha channels cannot have color. They are grayscale. So you could use an alpha channel with white and black, but it would mean your image would be mostly transparent. (You could use gray levels 255 and 254 to make it easier to see your image). But you would be better off making a sec...
by fmw42
2017-12-08T17:09:34-07:00
Forum: Users
Topic: Split and image into two equal parts.
Replies: 3
Views: 65

Re: Split and image into two equal parts.

This should have worked and given only two pieces. magick out00.png -crop 50%x100% +repage splitleftout%02d.png Note in IM 7, magick replaces convert. For other modules such as identify and mogrify, etc., you need to precede them with magick. So magick identify or magick mogrify. Using magick conver...
by fmw42
2017-12-08T12:43:39-07:00
Forum: Bugs
Topic: possible bug computing std IM 7.0.7.14 Q16
Replies: 9
Views: 189

Re: possible bug computing std IM 7.0.7.14 Q16

However, fx:standard_deviation is the standard deviation of all pixel components of a pixel. So our population is 3: red, green, and blue This does not make sense to me. If you have a constant color, then the std of each channel will be 0 and averaging the channel std values is still 0. So what exa...
by fmw42
2017-12-08T12:39:26-07:00
Forum: Bugs
Topic: possible bug computing std IM 7.0.7.14 Q16
Replies: 9
Views: 189

Re: possible bug computing std IM 7.0.7.14 Q16

The number of channels isn't relevant, because the calculation will use the "colour distance" between pixels, ie sqrt(dr^2+dg^2+db^2) For mean, min and max, I do not think there is any confusion. But for higher order stats such as std, perhaps one of these 3 choices: 1) append the channels and take...
by fmw42
2017-12-08T11:28:13-07:00
Forum: Users
Topic: Convert PDF with exactly the same quality
Replies: 2
Views: 51

Re: Convert PDF with exactly the same quality

ImageMagick is not a very good tool for vector to vector processing. It will rasterize your PDF and then embed that into a pdf vector shell. -quality is not useful for pdf processing. You probably want to change the density and resize. convert -density 288 0001.pdf 0002.pdf test30.pdf or convert -de...
by fmw42
2017-12-08T11:19:25-07:00
Forum: Users
Topic: Image is green when opened in MODI
Replies: 3
Views: 82

Re: Image is green when opened in MODI

-channel RGB does nothing in your command. Perhaps you meant -colorspace sRGB (RGB in very old versions of IM), although your image is already RGB as opposed to CMYK. Try one of these and see if they work. convert image.jpg -colorspace sRGB -type palette -depth 8 -compress none image.tif convert ima...
by fmw42
2017-12-08T11:13:45-07:00
Forum: Users
Topic: Image is green when opened in MODI
Replies: 3
Views: 82

Re: Image is green when opened in MODI

Please always provide your IM version and platform, since syntax may differ and bugs exist.
by fmw42
2017-12-08T11:04:38-07:00
Forum: Developers
Topic: Convert PSD files with alpha channel to transparent background
Replies: 1
Views: 63

Re: Convert PSD files with alpha channel to transparent background

I cannot access your images because one needs to log-in and I do not have an account there. Can you post them so that one does not need a log-in or to some other public hosting service. Your command looks like you ultimately want a jpg output. It would be easier to convert the PSD flattened layer [0...