Search found 10738 matches

by snibgo
2018-10-23T10:57:06-07:00
Forum: Users
Topic: Trim/crop by alpha
Replies: 17
Views: 205

Re: Trim/crop by alpha

Delegates (built-in): jng jpeg png tiff x zlib You have fewer delegates than before. You should install required delegate libraries such as openexr first, then install IM. IM's build process will find those delegates and incorporate them. IM's build creates "config.log", which is useful to find wha...
by snibgo
2018-10-23T09:59:28-07:00
Forum: Users
Topic: Trim/crop by alpha
Replies: 17
Views: 205

Re: Trim/crop by alpha

What does "magick -version" say?
by snibgo
2018-10-23T07:33:08-07:00
Forum: Developers
Topic: Precision for -verbose -distort?
Replies: 3
Views: 2725

Re: Precision for -verbose -distort?

Bump.

This enhancement should be simple, and would be very useful.

Thanks.
by snibgo
2018-10-23T05:43:59-07:00
Forum: Users
Topic: Palette PNG to 24-bit PNG
Replies: 1
Views: 49

Re: Palette PNG to 24-bit PNG

Identify reads the image, then tells you how it is stored in memory.

As you want to know how it is stored in the file, use exiftool.
by snibgo
2018-10-22T18:45:07-07:00
Forum: Users
Topic: Convert pdf if has less than 2 pages Command line
Replies: 4
Views: 87

Re: Convert pdf if has less than 2 pages Command line

You can put "rem" inside loops, but not "::".

As you are learning the basics of BAT scripting, I suggest you find a good manual or webpage on the subject.
by snibgo
2018-10-22T17:03:56-07:00
Forum: Users
Topic: Trim/crop by alpha
Replies: 17
Views: 205

Re: Trim/crop by alpha

WexOneOne wrote:Delegates (built-in): fontconfig freetype jng jpeg lzma png tiff x xml zlib
This doesn't have OpenEXR, so your IM can't read EXR.

I suggest you install OpenEXR, then rebuild IM.

My corrected command (see my edit above) gives:
Image
by snibgo
2018-10-22T16:19:48-07:00
Forum: Users
Topic: Trim/crop by alpha
Replies: 17
Views: 205

Re: Trim/crop by alpha

Does "magick" work at all? How about:

Code: Select all

magick -version
magick rose: x.png
magick x.png x.jpg
If those don't work, you need to reinstall IM and/or delegates.

If they do work, can you read EXR files?

Code: Select all

magick in.exr NULL:
by snibgo
2018-10-22T15:30:36-07:00
Forum: Users
Topic: Trim/crop by alpha
Replies: 17
Views: 205

Re: Trim/crop by alpha

I've re-read what you asked for, and perhaps I misunderstand. How about:

Code: Select all

magick in.exr -trim +repage -gravity center -bordercolor none -border 10 out.png
Does that do what you want?

EDIT: corrected to "+repage" instead of "-repage".
by snibgo
2018-10-22T14:33:14-07:00
Forum: Users
Topic: Trim/crop by alpha
Replies: 17
Views: 205

Re: Trim/crop by alpha

What version of IM on what platform? Extract the alpha to a grayscale image, then "-format %@" gives you what the trim dimensions would be. Read these into a script and do whatever adjustment you want, and use that in a "-crop". Or it can be done in a single v7 command. Or even v6, but that is messy.
by snibgo
2018-10-22T12:34:50-07:00
Forum: Users
Topic: Convert pdf if has less than 2 pages Command line
Replies: 4
Views: 87

Re: Convert pdf if has less than 2 pages Command line

Your line...

Code: Select all

echo %pgs%
... should be ...

Code: Select all

echo !pgs!
... and you should check you have enableddelayedexpansion.

Your ...

Code: Select all

-format %n 
... should be ...

Code: Select all

-format %%n 
by snibgo
2018-10-22T06:21:42-07:00
Forum: Magick.NET
Topic: ImageMagick dll and Exe returns two different values for RMSE image comparison
Replies: 2
Views: 73

Re: ImageMagick dll and Exe returns two different values for RMSE image comparison

What values are you getting from the two methods?

If you post links to your inputs, we can use other methods to nail down the difference.
by snibgo
2018-10-22T02:39:20-07:00
Forum: Users
Topic: Remapping a picture to a set color palette.
Replies: 3
Views: 87

Re: Remapping a picture to a set color palette.

The data loss (ie change to pixels) occurs when writing JPG, not reading JPG. If your source image is JPG, converting it to PNG won't get the data back. As general rules: don't use JPG sources unless nothing better is available. Don't use JPG for any image processing. JPG is a useful format if you w...
by snibgo
2018-10-21T13:57:53-07:00
Forum: Users
Topic: Confused about median
Replies: 6
Views: 138

Re: Confused about median

Something else to remember: "-statistic" is affected by the "-virtual-pixel" setting.
by snibgo
2018-10-21T12:12:39-07:00
Forum: Users
Topic: Change picture to transparent and inserting it into other picture at specific location
Replies: 19
Views: 569

Re: Change picture to transparent and inserting it into other picture at specific location

When you composite two images, metadata for the result is taken from the first input, not the second. 4060715278916-0.png may contain critical metadata. Perhaps reversing the order will do what you want.

The links to your images are broken, and I can't download them.