Search found 13038 matches

by snibgo
2020-04-25T23:53:05-07:00
Forum: Users
Topic: one jpg use much more time than another jpg to add text
Replies: 4
Views: 1584

Re: one jpg use much more time than another jpg to add text

Your d.jpg contains a large quantity of metadata that is not relevant to the image, approx 60 MB. If we strip this out, processing both images takes about the same time.
by snibgo
2020-04-25T13:45:43-07:00
Forum: Users
Topic: Color Differences In Image Creation
Replies: 4
Views: 1587

Re: Color Differences In Image Creation

xstatic wrote:How can I adjust my command to ensure the color comes out correctly?
You have used a colour of "rgba(177, 0, 0, 0.88)", but then used the operation "-level 40,60%". 177 out of 255 is more than 60%, so it is changed to its maximum value.
by snibgo
2020-04-25T09:57:43-07:00
Forum: Users
Topic: write a number inside a circle with condition that font size should be automatic
Replies: 14
Views: 3261

Re: write a number inside a circle with condition that font size should be automatic

Code: Select all

magick -size 100x100 label:123 in.png +swap -composite out.png
by snibgo
2020-04-24T23:47:47-07:00
Forum: Users
Topic: writing metadata inside image while creating it
Replies: 2
Views: 1324

Re: writing metadata inside image while creating it

Use "-set". For example:

Code: Select all

magick rose: -set my_comment "Hello world" x.png

magick x.png -verbose info: |grep my_comment
    my_comment: Hello world
by snibgo
2020-04-23T19:36:12-07:00
Forum: Users
Topic: How compose two or three jpg files to one new file
Replies: 8
Views: 2588

Re: How compose two or three jpg files to one new file

I suggest you use "convert", not "composite".

The inputs are both CMYK. For the second input, we make white pixels (#000) transparent. Windows BAT syntax.

Code: Select all

convert ^
  415.jpg ^
  ( 415-03.jpg -fuzz 5%% -transparent #000 ) ^
  -composite ^
  out.jpg
by snibgo
2020-04-23T11:43:27-07:00
Forum: Magick.NET
Topic: label: position after rotation
Replies: 3
Views: 1394

Re: label: position after rotation

With "System.Drawing", you can translate before or after rotating. Your code rotates first, then translates. The rotation creates a new image. You specify where to place that new image.
by snibgo
2020-04-23T11:17:27-07:00
Forum: Magick.NET
Topic: label: position after rotation
Replies: 3
Views: 1394

Re: label: position after rotation

Perhaps you don't understand what "image.Composite(imgText, x, y, CompositeOperator.Over)" does. It puts the top-left corner of "imgText" at the coordinates (x,y) of "image". Note that in your examples, the top-left of the text image is at the same place. So you should reduce the value of y by the h...
by snibgo
2020-04-23T04:48:47-07:00
Forum: Users
Topic: How compose two or three jpg files to one new file
Replies: 8
Views: 2588

Re: How compose two or three jpg files to one new file

What version of IM, on what platform? Please link to sample inputs.

I'm not sure what you want. Perhaps "-transparent {colour}" applied to just one of the inputs.
by snibgo
2020-04-21T16:54:29-07:00
Forum: Developers
Topic: convert image 75 dpi to 300 dpi
Replies: 23
Views: 185996

Re: convert image 75 dpi to 300 dpi

FWIW, I agree with Fred. IM's behaviour has changed since Drarakel wrote in 2011. For IM v7, we should always think about the obvious, natural order of operations. We read a raster image from a file, then change its density, then write a new file. magick in.png -density 350 -units pixelsperinch out....
by snibgo
2020-04-21T10:34:03-07:00
Forum: Users
Topic: How to convert AI to PNG
Replies: 3
Views: 1722

Re: How to convert AI to PNG

To duplicate with offsets, assuming your lines are dark on a white background, IM v7, Windows BAT script:

Code: Select all

magick ^
  in.ai ^
  ( -clone 0 -repage +1+0 ) ^
  ( -clone 0 -repage +0+1 ) ^
  ( -clone 0 -repage +1+1 ) ^
  -compose Darken ^
  -layers merge ^
  out.png
by snibgo
2020-04-19T19:06:12-07:00
Forum: Users
Topic: make light text stand out against red background
Replies: 6
Views: 2032

Re: make light text stand out against red background

The image at https://pasteboard.co/J4zaJRQ.png seems to be five subimages appended horizontally, with different shades of red background. The subimages are different widths. So I would start by splitting the image into the subimages. But then each subimage is noisy, so isolating the dots is not easy...
by snibgo
2020-04-19T11:26:35-07:00
Forum: Users
Topic: quickly create a number board using image magick
Replies: 10
Views: 2806

Re: quickly create a number board using image magick

... to draw a chess board ... There are many ways. Here is one way, Windows BAT script: setlocal enabledelayedexpansion set CAPTS= for /L %%N in (0,1,89) do ( set /A NP1=%%N+1 set /A N1=%%N/10%%2+%%N%%2 if !N1!==1 ( set CAPTS=!CAPTS! -background white -fill black caption:!NP1! ) else ( set CAPTS=!C...
by snibgo
2020-04-19T06:33:25-07:00
Forum: Users
Topic: quickly create a number board using image magick
Replies: 10
Views: 2806

Re: quickly create a number board using image magick

For IM v7, I suggest you use "magick" instead of "convert", and "magick montage" instead of "montage". Is there a better way ? Better in what way? If your filename had leading zeroes, with no other PNG files in that directory, your montage could simply use "*.png" as input instead of listing them al...
by snibgo
2020-04-19T05:43:47-07:00
Forum: Users
Topic: write a number inside a circle with condition that font size should be automatic
Replies: 14
Views: 3261

Re: write a number inside a circle with condition that font size should be automatic

As in the link you show, IM can automatically find the largest pointsize that will fit some text in a square (or in a general rectangle). Internally, it does this by trial-and-error, trying different pointsizes. IM can't automatically find the largest pointsize that will fit some text in a circle. Y...
by snibgo
2020-04-18T17:41:05-07:00
Forum: Consulting
Topic: PAID: Problem with IMagick, Huge temp files, LF a developer
Replies: 47
Views: 9271

Re: PAID: Problem with IMagick, Huge temp files, LF a developer

I should also mention: the limits we give IM apply only to IM, not to Ghostscript. For example, we might "-limit width 100" and this will prevent IM from reading output from Ghostscript that is wider than 100 pixels. But it won't prevent Ghostscript from creating a temporary file that is much wider.