Search found 12163 matches

by snibgo
2019-10-02T08:18:32-07:00
Forum: Users
Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
Replies: 10
Views: 140501

Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?

The trim line can be more complex, eg adding a border: ( +clone -trim +repage -bordercolor rgba(51,153,255,0.7) -compose Copy -border 2 +compose ) ^ We can't have a single command that uses either "label:" or "caption:" according to some condition. However, we would have a comman...
by snibgo
2019-10-02T07:06:31-07:00
Forum: Users
Topic: Large 1bit Tiffs take forever
Replies: 26
Views: 124080

Re: Large 1bit Tiffs take forever

For one build method, see Compiling IM with Cygwin. Once you have the Cygwin tools and IM source, building IM needs just five commands. For Q8, use "--with-quantum-depth=8" in the ./configure command.
by snibgo
2019-10-02T05:48:03-07:00
Forum: Users
Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
Replies: 10
Views: 140501

Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?

If the caption image is a single line, you want to trim it. Correct? How about this (Windows BAT syntax): set MYCAPT=My much xxxxxxx longer string set MYCAPT=My string magick ^ -pointsize 15 ^ ( caption:"MIyg" ) ^ ( -size 150x caption:"%MYCAPT%" ) ^ -set option:DELWHICH "%%[...
by snibgo
2019-10-02T04:14:04-07:00
Forum: Users
Topic: [Solved] Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?
Replies: 10
Views: 140501

Re: Specifying a maximum width for long caption text while for shorter strings occupying a shorter width?

What version of IM, on what platform?

I suppose you are specifying pointsize. Please always show complete commands, or we need to guess.

You can test the height of a result, to see whether the text is on a single line. If it is, you can re-run the command with no specified width.
by snibgo
2019-10-01T07:26:52-07:00
Forum: Bugs
Topic: Error image read from windows clipboard (copy from chrome)
Replies: 10
Views: 69909

Re: Error image read from windows clipboard (copy from chrome)

On what platform? Eg Windows 10, some version of Mac, some version of Unix.

Perhaps Chrome puts something into the clipboard that IM is ignoring. A developer would need to reproduce the problem.
by snibgo
2019-10-01T06:34:28-07:00
Forum: Bugs
Topic: Error image read from windows clipboard (copy from chrome)
Replies: 10
Views: 69909

Re: Error image read from windows clipboard (copy from chrome)

Without more information, this is difficult to diagnose. What version of IM? On what platform? What software copies from Chrome? Is that a function in Chrome? When other software reads from the clipboard (eg paste into Paint or Gimp), does this scrolling happen? When other non-Chrome software copies...
by snibgo
2019-09-30T12:43:13-07:00
Forum: Users
Topic: Crop image keeping original position
Replies: 2
Views: 5377

Re: Crop image keeping original position

I'm not sure what you want. After crop, the image has an offset in a canvas, so we can flatten to use that entire canvas if we want:

Code: Select all

magick 1200px-Stratton_Oakmont_logo_svg.png -crop 550x800+320+30 -background Blue -layers Flatten x.png
Is that what you want?
by snibgo
2019-09-30T04:06:32-07:00
Forum: Users
Topic: Resize height command operating on wrong axis
Replies: 2
Views: 6083

Re: Resize height command operating on wrong axis

geno11x11 wrote:IM seems to be treating portrait oriented images as Landscape images.
Use "-auto-orient". See http://www.imagemagick.org/script/comma ... uto-orient
by snibgo
2019-09-29T16:34:49-07:00
Forum: Magick++
Topic: Several Questions regarding Magick++
Replies: 4
Views: 47824

Re: Several Questions regarding Magick++

Are those DLL files? I don't use Visual Studio. Is your "debug" setting on? If so, I suspect "_DB" stands for "debug". The pre-built ImageMagick binaries have "_RL" DLLs, for "release", I think.
by snibgo
2019-09-29T05:03:33-07:00
Forum: Magick++
Topic: Several Questions regarding Magick++
Replies: 4
Views: 47824

Re: Several Questions regarding Magick++

Three APIs to ImageMagick are: 1. C access to MagickCore. 2. C access to MagickWand. 3. C++ access. This is often called "Magick++". So you can write CPP programs that use ImageMagick libraries to process images. I build ImageMagick on Windows 8.1 using GNU C++ build tools, from the Cygwin...
by snibgo
2019-09-28T08:24:31-07:00
Forum: Users
Topic: compose one transparent png(as mask) with one jpg
Replies: 4
Views: 7450

Re: compose one transparent png(as mask) with one jpg

What version of IM, on what platform? Can you link to sample input and output images?

Perhaps your IM is Q16 HDRI but your requirement needs only Q8 non-integer.
by snibgo
2019-09-28T05:59:44-07:00
Forum: Users
Topic: How to create drop shadow on resized image with an extension?
Replies: 20
Views: 23593

Re: How to create drop shadow on resized image with an extension?

On drop shadows, see http://www.imagemagick.org/Usage/blur/#shadow I think you want to create a drop shadow (which is semi-transparent), then flatten the output against an opaque colour. Finally, "-extent". Windows BAT syntax: %IMG7%magick ^ rose: ^ ( +clone -background navy -shadow 80x3+5...
by snibgo
2019-09-28T04:49:30-07:00
Forum: Users
Topic: Convert with density and resample arguments does not change DPI
Replies: 1
Views: 4644

Re: Convert with density and resample arguments does not change DPI

"-format" is done once per image, so I suppose your PDF has two pages.

PDF pages are vector, so they don't really have any resolution. However they do have a physical size in inches or whatever, so setting a density for a PDF affects this size.
by snibgo
2019-09-27T17:45:28-07:00
Forum: Bugs
Topic: Converting png to svg: Imagemagick can't read the resulting file
Replies: 3
Views: 47436

Re: Converting png to svg: Imagemagick can't read the resulting file

In the SVG file, which Inkscape shows as exactly white, the embedded raster image starts with: href="data:image/png;base64,iVBO ... If we change it to... xlink:href="data:image/png;base64,iVBO ... ... then Inkscape correctly shows the embedded image. I assume this is an IM bug, so I'll mov...
by snibgo
2019-09-27T13:50:46-07:00
Forum: Users
Topic: Convert and Image Order
Replies: 5
Views: 7265

Re: Convert and Image Order

If you only want the first image from the TIFF file, you can do this: compare -metric RMSE yourtiff.tiff[0] yourjp2.jp2 NULL: For confirmation of what images have been read, insert "+write info:" before the "NULL:", eg: f:\web\im>%IM%compare -metric RMSE x.tif[0] rose: -write inf...