Search found 9471 matches

by snibgo
2017-12-11T20:04:59-07:00
Forum: Bugs
Topic: resize was successful but cannot decrease file size
Replies: 2
Views: 24

Re: resize was successful but cannot decrease file size

"-resize" changes the number of pixels in the image. It isn't designed to change the file size.

Most of the data in the input file is non-image data. If you "-strip" it, the size is 11,285 bytes.
by snibgo
2017-12-11T01:24:52-07:00
Forum: Developers
Topic: Convert PSD files with alpha channel to transparent background
Replies: 11
Views: 170

Re: Convert PSD files with alpha channel to transparent background

Windows BAT syntax for slope magnitude and threshold:

Code: Select all

convert 44-2868_10.psd[1] -profile sRGB.icc -strip x1.png

call %PICTBAT%slopeMag x1.png

%IM%convert ^
  x1_sm.png ^
  -threshold 1%% ^
  t.png
For slopeMag.bat, see Details, details.
by snibgo
2017-12-10T23:32:56-07:00
Forum: Developers
Topic: Convert PSD files with alpha channel to transparent background
Replies: 11
Views: 170

Re: Convert PSD files with alpha channel to transparent background

Okay, so you get single images from users, and want to remove backgrounds in general. That is possible if there is some way to distinguish background from foreground. In your "gray background" image, the foreground and background almost merge together towards the top-left. Separation is possible (fi...
by snibgo
2017-12-10T22:45:02-07:00
Forum: Developers
Topic: Convert PSD files with alpha channel to transparent background
Replies: 11
Views: 170

Re: Convert PSD files with alpha channel to transparent background

Each PSD file contains two images. The second is identical to the first. (At least, the two images that IM gets from the file are identical). All four images (two from each file) have an alpha channel, but it is fully opaque. The command I showed need two images with identical foreground but differe...
by snibgo
2017-12-10T21:59:33-07:00
Forum: Developers
Topic: Convert PSD files with alpha channel to transparent background
Replies: 11
Views: 170

Re: Convert PSD files with alpha channel to transparent background

The two PSD files have two different images. The images have the same object, but with different backgrounds. I think the task is to make an image that contains the object but with a blank (or white) background: convert 44-2868_10.psd[0] 44-2868_11.psd[0] ( -clone 0-1 -compose Difference -composite ...
by snibgo
2017-12-10T16:07:36-07:00
Forum: Users
Topic: Convert SVG to PNG with special characters
Replies: 5
Views: 100

Re: Convert SVG to PNG with special characters

The last line says that the external delegate for *.svg files is a program called rsvg-convert. If you don't have that program, it won't be used.

I suggest you install Inkscape, which is (as far as I know) the most complete rasterizer of SVG.
by snibgo
2017-12-09T15:32:43-07:00
Forum: Users
Topic: Check single column of pixels
Replies: 6
Views: 155

Re: Check single column of pixels

Yes, toes.png is my usual test image.

You need "info:" at the end. Sorry, my copy-paste error.
by snibgo
2017-12-09T08:36:36-07:00
Forum: Users
Topic: Crop image based on coordinates from a "-trim +repage" of a different image?
Replies: 16
Views: 303

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

One way of doing this task would be to have a script that takes an input image as the argument: 1. Copy the input to another file. 2. Open gimp with that other file. 3. The user changes the foreground colour to pure green (assuming the input contains no pure green), and selects the pencil (to avoid ...
by snibgo
2017-12-08T17:05:03-07:00
Forum: Users
Topic: Split and image into two equal parts.
Replies: 3
Views: 68

Re: Split and image into two equal parts.

You need an "at", "@":

Code: Select all

-crop 2x1@ +repage
This chops it into two pieces horizontally, but only one vertically.

It is documented, at http://www.imagemagick.org/script/comma ... s.php#crop
by snibgo
2017-12-08T14:49:56-07:00
Forum: Users
Topic: Image is green when opened in MODI
Replies: 7
Views: 156

Re: Image is green when opened in MODI

gustav wrote:So why is it green specifically when opened in MODI? In other programs the compressed image looks fine.
That sounds like a question for Microsoft. But they discontinued MODI in 2010, so they might not answer.
by snibgo
2017-12-08T14:13:12-07:00
Forum: Bugs
Topic: possible bug computing std IM 7.0.7.14 Q16
Replies: 10
Views: 228

Re: possible bug computing std IM 7.0.7.14 Q16

So our population is 3: red, green, and blue. But a single pixel has exactly one colour. The population is 1, however many channels it has. If there are two pixels, the SD should be zero (if they have the same colour) or some larger number if they are different. I accept there is room for different...
by snibgo
2017-12-08T12:38:07-07:00
Forum: Users
Topic: Convert PDF with exactly the same quality
Replies: 2
Views: 58

Re: Convert PDF with exactly the same quality

A more suitable tool for that task is pdfunite, which is available for *nix, Windows (eg from Cygwin), and probably many other platforms.
by snibgo
2017-12-08T12:20:09-07:00
Forum: Bugs
Topic: possible bug computing std IM 7.0.7.14 Q16
Replies: 10
Views: 228

Re: possible bug computing std IM 7.0.7.14 Q16

Fred, can you repeat your test with a size, using a recent IM version, eg: magick -size 1x1 xc:"rgb(25,128,50)" -format "%[fx:standard_deviation]\n" info: magick -size 2x1 xc:"rgb(25,128,50)" -format "%[fx:standard_deviation]\n" info: magick -size 3x1 xc:"rgb(25,128,50)" -format "%[fx:standard_devia...
by snibgo
2017-12-08T12:05:59-07:00
Forum: Magick.NET
Topic: Accessing raw image data
Replies: 11
Views: 152

Re: Accessing raw image data

What do you mean by "raw decompressed pixels"? If you mean pixel data as it appears in the file, no IM doesn't give you that. It always converts the file data into its own format, which depends on the Q-number and whether HDRI is used.
by snibgo
2017-12-08T04:53:47-07:00
Forum: Users
Topic: Convert SVG to PNG with special characters
Replies: 5
Views: 100

Re: Convert SVG to PNG with special characters

On SVG rendering, see http://www.imagemagick.org/Usage/draw/#svg

Does Inkscape correctly process the SVG? If it does, then I suggest you use that as the IM delegate. If it doesn't, there's a problem with your SVG file.