Search found 24938 matches

by fmw42
2019-05-24T18:39:27-07:00
Forum: Users
Topic: CMYK jpg to sRGB png
Replies: 19
Views: 679

Re: CMYK jpg to sRGB png

pdfimages is not part of ImageMagick. See https://en.wikipedia.org/wiki/Pdfimages.

See snibgo's comments above. He used pdfimages to extract your JPG from inside the PDF.
by fmw42
2019-05-24T17:06:44-07:00
Forum: Bugs
Topic: possible bug IM 7.0.8.46 -alpha deactivate/activate
Replies: 2
Views: 81

Re: possible bug IM 7.0.8.46 -alpha deactivate/activate

In IM 7.0.8.47 beta Q16 Mac OSX, this command produce no bevel from the -shade as it should in comparison to the IM 6 result above. magick text.png -alpha deactivate -blur 0x6 -shade 135x5 -normalize +level 30% -alpha activate shaded7a.png http://www.fmwconcepts.com/misc_tests/alpha_bug/shaded7a.png...
by fmw42
2019-05-24T16:23:56-07:00
Forum: Magick.NET
Topic: How to get the dominant color in an image?
Replies: 4
Views: 89

Re: How to get the dominant color in an image?

Scale the image to say 50x50. Then reduce colors to some small number, say 8 at 8-bit depth. The get the histogram and sort it by decreasing count and take the top one. Sorry, I do not know Magick.NET In unix command line: convert image -scale 50x50! -depth 8 +dither -colors 8 -format "%c" histogram...
by fmw42
2019-05-24T16:14:54-07:00
Forum: Magick.NET
Topic: How to fit image sizes correctly
Replies: 9
Views: 182

Re: How to fit image sizes correctly

This second approach ignores the rectangular form of my inputted width x height. For instance, using 1280x1920 I'm getting an image with 1280x1280. Both approaches will create the exact size you specify in the resize. Is that not what you want. If you specify 1280x1920 both approaches will make an ...
by fmw42
2019-05-24T11:56:25-07:00
Forum: Bugs
Topic: Conversion of SVG image to PNG with text that includes an & adds extra space around ampersand
Replies: 9
Views: 341

Re: Conversion of SVG image to PNG with text that includes an & adds extra space around ampersand

Add -verbose to the command line convert -verbose original.svg original.png 'inkscape' '/tmp/magick-1497OpBiiWuF7lzl' --export-png='/tmp/magick-1497tC_REUWAA9e2' --export-dpi='96,96' --export-background='rgb(100%,100%,100%)' --export-background-opacity='1' > '/tmp/magick-14977VaBNUCEconz' 2>&1 /tmp/...
by fmw42
2019-05-24T10:53:12-07:00
Forum: Users
Topic: convert command with noise overlay
Replies: 4
Views: 74

Re: convert command with noise overlay

Assume you know the size of your output. Here is an example adding plasma fractal noise to the lena image. http://www.fmwconcepts.com/misc_tests/noise/lena.png convert lena.png \ \( -size 256x256 plasma: -colorspace gray -alpha set -channel a -evaluate multiply 0.3 +channel \) \ -compose over -compo...
by fmw42
2019-05-24T08:29:11-07:00
Forum: Users
Topic: Testing for image transparency
Replies: 2
Views: 68

Re: Testing for image transparency

Not really that I know. But your syntax is out of date. It should be convert image -alpha on -channel A -format "%[fx:maxima]\n" info: opaque: convert logo: -alpha on -channel a -separate -format "%[fx:maxima]\n" info: 1 partially transparent: convert logo: -transparent white logot.png convert logot...
by fmw42
2019-05-24T08:17:35-07:00
Forum: Bugs
Topic: Conversion of SVG image to PNG with text that includes an & adds extra space around ampersand
Replies: 9
Views: 341

Re: Conversion of SVG image to PNG with text that includes an & adds extra space around ampersand

hairykid wrote:
2019-05-24T03:00:45-07:00
Unfortunately upgrading to Version: ImageMagick 7.0.8-46 didn't fix it for me.

Does this mean it is not an ImageMagick issue?

Thanks
Did you install inkscape on your system?
by fmw42
2019-05-24T08:04:20-07:00
Forum: Bugs
Topic: Embedded images in SVG are colour inverted when converted to PNG
Replies: 8
Views: 307

Re: Embedded images in SVG are colour inverted when converted to PNG

convert msvg:... This is forcing the using of the internal MSVG/XML renderer. If you want to use inkscape and it is on your system and your IM version is current enough, then remove the msvg: from in front of your SVG file specification. When I run it using Inkscape with ImageMagick, I get a "linke...
by fmw42
2019-05-23T16:33:45-07:00
Forum: Users
Topic: what's the best way to combine multiple pics into one big pics
Replies: 1
Views: 48

Re: what's the best way to combine multiple pics into one big pics

What you probably want is to flatten all the images onto the background. You can do that in one command line using -flatten. See https://imagemagick.org/Usage/layers/#flatten. Sorry, I do not know the Java ImageMagick API nor do I know of any Java examples. See https://github.com/techblue/jmagick or...
by fmw42
2019-05-23T16:29:29-07:00
Forum: Users
Topic: removing background
Replies: 1
Views: 58

Re: removing background

It is very hard to know what to tell you without seeing your images. Post them to some free hosting service and put the URL here. Typical command is convert image -fuzz XX% -transparent black output if the background is near black, where XX% is the percent tolerance near black. Replace black with wh...
by fmw42
2019-05-23T16:26:12-07:00
Forum: Magick.NET
Topic: How to fit image sizes correctly
Replies: 9
Views: 182

Re: How to fit image sizes correctly

Sorry, I do not know Magick.NET. But in command line, you have two choices if you do not want to distort your image and the aspect ratios of the input and desired size are not the same: 1) resize to the larger dimension and pad or 2) resize to the smaller dimension and crop. With the former you woul...
by fmw42
2019-05-23T10:00:49-07:00
Forum: Developers
Topic: Can you help with an 'Unable to annotate image' error?
Replies: 6
Views: 98

Re: Can you help with an 'Unable to annotate image' error?

Yes, get your IT people to either install the freetype delegate into ImageMagick or upgrade ImageMagick with the delegate included. ImageMagick 6.9.6-4 is rather old, though on Linux servers the date (2017-04-04) of the patch is more important. So your version is about 2 years old if properly patched.
by fmw42
2019-05-23T09:58:25-07:00
Forum: MagickWand for PHP
Topic: Get coordinates x,y of a clipping path #1
Replies: 2
Views: 71

Re: Get coordinates x,y of a clipping path #1

Often it will be listed as SVG text in the

Code: Select all

identify -verbose image.suffix. 


If the image is TIF, it can be extracted from the 8bim file as follows:

Code: Select all

identify -format '%[8BIM:1999,2998:#1]' image_clip.tiff
by fmw42
2019-05-23T09:51:59-07:00
Forum: Developers
Topic: Can you help with an 'Unable to annotate image' error?
Replies: 6
Views: 98

Re: Can you help with an 'Unable to annotate image' error?

Your ImageMagick is missing freetype delegate that is needed to render text from fonts. See https://www.freetype.org. How did you install ImageMagick? Where did it come from?