Search found 9262 matches

by snibgo
2017-10-23T00:56:35-07:00
Forum: Users
Topic: Create multiple images on a canvas at once?
Replies: 4
Views: 68

Re: Create multiple images on a canvas at once?

Use "-repage", not "-page", and put that within the parentheses, like this (bash syntax):

Code: Select all

convert -size 4500x4500 xc:white \( -size 400x400 xc:red -repage +500+900 \)
 \( -size 400x400 xc:blue -rotate 45 -repage +200+200 \) -layers merge x.png
by snibgo
2017-10-23T00:27:29-07:00
Forum: Users
Topic: Create multiple images on a canvas at once?
Replies: 4
Views: 68

Re: Create multiple images on a canvas at once?

To position images, "-layers" uses page settings, not geometry.

When using "-geometry", you should do a "-composite" after each geometry.
by snibgo
2017-10-22T20:37:27-07:00
Forum: Users
Topic: Filling the gaps made in pixels due to line removal
Replies: 4
Views: 74

Re: Filling the gaps made in pixels due to line removal

fillholespri.c isn't a script, but C code. Put it in the "filters" directory of your IM source, and re-build IM. Instructions are in Process modules.
by snibgo
2017-10-22T06:27:09-07:00
Forum: Users
Topic: Resizing behavior aligned to Lightroom
Replies: 5
Views: 1209

Re: Resizing behavior aligned to Lightroom

Okay, so your problem is the opposite to what I thought it was. IM is giving you an image larger than you expected. Most cameras work like that. They have image sensors with more pixels then they advertise. The reason for this is that some lenses at some apertures don't shine light on the entire sen...
by snibgo
2017-10-22T05:43:36-07:00
Forum: Users
Topic: Filling the gaps made in pixels due to line removal
Replies: 4
Views: 74

Re: Filling the gaps made in pixels due to line removal

I've written a couple of web pages on the topic, plus code -- search "filling holes" on my web page. The example on your link uses a morphological open to join lines across the gap. My hole-filling code copies suitable areas from elsewhere in the image. The gap is only 2 or 3 pixels high, so they sh...
by snibgo
2017-10-20T03:27:48-07:00
Forum: Users
Topic: I don't understand color calculation [solved]
Replies: 8
Views: 140

Re: I don't understand color calculation

supermax wrote:(u[2])-(u[0]) / (u[2])+(u[0])
Is that what you intended? Look at the parentheses.
supermax wrote:(u.b-u.r)/(u.b+u.r)
Where blue is less than red, the value will be negative, which clamps to black. In your image, blue is mostly less than red. Try adding 0.5.
by snibgo
2017-10-19T17:24:50-07:00
Forum: Users
Topic: convert produces unreadable pdf
Replies: 6
Views: 110

Re: convert produces unreadable pdf

Screenshots are usually raster images. Using IM to read a PDF will convert each page to a raster file at whatever resolution you specify. But if you simply want to extract each raster image, unchanged, then pdfimages is the appropriate tool, not IM.
by snibgo
2017-10-19T06:40:47-07:00
Forum: Magick++
Topic: GraphicsMagick++ draw text and auto-resize canvas
Replies: 5
Views: 108

Re: GraphicsMagick++ draw text and auto-resize canvas

In the way you have done it. Doesn't that work? It does for me, using IM. Maybe it doesn't in GM.
by snibgo
2017-10-19T01:31:32-07:00
Forum: Magick++
Topic: GraphicsMagick++ draw text and auto-resize canvas
Replies: 5
Views: 108

Re: GraphicsMagick++ draw text and auto-resize canvas

GraphicsMagick (GM) isn't ImageMagick (IM), so you are asking in the wrong place. In IM, "caption:" creates a new image. It doesn't resize anything, it creates a new image. By contrast, "annotate" writes text on an image that must already exist. It also doesn't resize anything. To do what you want, ...
by snibgo
2017-10-18T18:11:57-07:00
Forum: Bugs
Topic: Gravity Center not centered with text
Replies: 5
Views: 144

Re: Gravity Center not centered with text

The image has a black border. So that code did not make that image.
by snibgo
2017-10-18T17:03:46-07:00
Forum: Users
Topic: Emulate Photoshop/Gimp blend mode “Overlay”
Replies: 13
Views: 350

Re: Emulate Photoshop/Gimp blend mode “Overlay”

cinymini wrote:On 6.7.8, the result is different ...
I strongly suggest that you don't use such an old version. If you have no choice, then don't use grayscale images with that version.
by snibgo
2017-10-18T16:38:36-07:00
Forum: Users
Topic: CR2 raw files under Windows
Replies: 7
Views: 279

Re: CR2 raw files under Windows

The verbose setting can be set within programs, of course. This will tell you what delegate is being used to read the CR2 file, and the settings. The delegate will be either ufraw-batch or dcraw. For dcraw, IM commonly does not use the dcraw "-w" setting, to apply the white balance as recorded by th...
by snibgo
2017-10-18T15:51:23-07:00
Forum: Users
Topic: Center a text problem
Replies: 16
Views: 348

Re: Center a text problem

@Sardoan: your images have black borders. Nothing in your code would make any borders. So where have they come from?
by snibgo
2017-10-18T03:30:05-07:00
Forum: Bugs
Topic: Gravity Center not centered with text
Replies: 5
Views: 144

Re: Gravity Center not centered with text

Please state your IM version and platform.

If you don't show your code, the problem cannot be reproduced, so it won't be fixed.

Also say where your font came from.
by snibgo
2017-10-18T03:27:52-07:00
Forum: Bugs
Topic: Composition of alpha channels fails on 6.9.1-2
Replies: 4
Views: 150

Re: Composition of alpha channels fails on 6.9.1-2

What is "COMPOSITE_DEFAULT"? Is it the same as "Over"?