Search found 44 matches

by sas
2016-10-22T06:46:00-07:00
Forum: Users
Topic: [IM7] Easy way to align & append images with overlap?
Replies: 15
Views: 20515

Re: [IM7] Easy way to align & append images with overlap?

That works, thanks. It still requires messing around with "fx" and variables, though... I think I once saw a post by an IM developer during IM6 times, saying that a simple mechanism form aligning layers relative to each other (with gravity and offsets and everything) might be implemented in IM7. Has...
by sas
2016-10-21T10:24:01-07:00
Forum: Users
Topic: [IM7] Easy way to align & append images with overlap?
Replies: 15
Views: 20515

[IM7] Easy way to align & append images with overlap?

-append makes it easy to vertically append two images such that they're horizontally aligned to the center: magick granite: rose: -background transparent -gravity South -append result.png https://i.imgur.com/PZ7jVWq.png But now I want to have some overlap between the two images, say 10 pixels. Afte...
by sas
2016-09-10T02:37:00-07:00
Forum: Users
Topic: [IM7 bug?] `-background transparent -flatten` clears whole image
Replies: 7
Views: 5131

Re: [IM7 bug?] `-background transparent -flatten` clears whole image

I see. Still seems weird that this would cause " -background transparent -flatten " to clear the whole image, doesn't it? It's as if it treats the image without alpha channel as all-transparent, when it would make more sense to treat it as all-opaque, or alternatively throw an error message about th...
by sas
2016-09-10T00:12:51-07:00
Forum: Users
Topic: [IM7 bug?] `-background transparent -flatten` clears whole image
Replies: 7
Views: 5131

Re: [IM7 bug?] `-background transparent -flatten` clears whole image

Turns out I can make it work in IM7 by explicitly setting -alpha on before the -flatten : magick rose: -crop 50x50+30+20! -alpha on -background transparent -flatten -bordercolor black -border 5x5 b.png http://i.imgur.com/oorKctS.png Is this intended behavior, then? Or should it be reported as a bug?
by sas
2016-09-09T04:22:53-07:00
Forum: Users
Topic: [IM7 bug?] `-background transparent -flatten` clears whole image
Replies: 7
Views: 5131

Re: [IM7 bug?] `-background transparent -flatten` clears whole image

I don't know why you have "!" in "-crop", or what that might do. It's what allows me to crop beyond the original image geometry and keep the extra areas. From the docs : " By adding a exclamation character flag to the geometry argument, the cropped images virtual canvas page size and offset is set ...
by sas
2016-09-09T03:06:17-07:00
Forum: Users
Topic: [IM7 bug?] `-background transparent -flatten` clears whole image
Replies: 7
Views: 5131

[IM7 bug?] `-background transparent -flatten` clears whole image

Here I crop an image beyond the original geometry, then flatten to preserve the new geometry created by the crop, and then add a border : magick rose: -crop 50x50+30+20! -flatten -bordercolor black -border 5x5 b.png http://i.imgur.com/BWY2O50.png So far so good. But now I'd like to use Transparent i...
by sas
2016-09-07T04:13:23-07:00
Forum: Users
Topic: [Solved] Add padding to a label with translucent background
Replies: 5
Views: 4028

Re: [IM7] Add padding to a label with translucent background

With copy it works:
Image

Thanks for the help.
by sas
2016-09-07T03:25:38-07:00
Forum: Users
Topic: [Solved] Add padding to a label with translucent background
Replies: 5
Views: 4028

Re: [IM7] Add padding to a label with translucent background

@snibgo: With atop the result isn't quite right, either:

Code: Select all

color="rgba(0,0,255,0.5)"
convert -size 100x -background "$color" label:"Hello" -bordercolor "$color" -compose atop -border 20x20 label.png
Image
by sas
2016-09-07T02:28:19-07:00
Forum: Users
Topic: [Solved] Add padding to a label with translucent background
Replies: 5
Views: 4028

Re: [IM7] Add padding to a label with translucent background

OK, I managed to find a solution: color="rgba(0,0,255,0.5)" convert -size 100x -background none label:"Hello" -bordercolor none -border 20x20 -background "$color" -flatten label.png http://i.imgur.com/yxwolJX.png However, I'd still like to know why the behavior shown in the previous post (double-ble...
by sas
2016-09-07T02:17:56-07:00
Forum: Users
Topic: [Solved] Add padding to a label with translucent background
Replies: 5
Views: 4028

[Solved] Add padding to a label with translucent background

When using a solid background color, I can add padding to a label like this: color="#0000ff" convert -size 100x -background "$color" label:"Hello" -bordercolor "$color" -border 20x20 label.png http://i.imgur.com/Jy5Id8X.png But when using a translucent background color like... color="rgba(0,0,255,0....
by sas
2016-07-03T12:45:49-07:00
Forum: Users
Topic: Center layers relative to each other
Replies: 2
Views: 3238

Center layers relative to each other

Consider a folder with a bunch of images with different dimensions. For testing purposes, we can use these input images: mkdir frames convert rose: frames/01.png convert granite: frames/02.png Now I'd like to combine that whole folder into a single GIF animation. The following works, but it aligns t...
by sas
2016-05-02T05:38:45-07:00
Forum: Users
Topic: How to use letters as æ ø å
Replies: 4
Views: 5289

Re: How to use letters as æ ø å

@Santa911:

This works fine for me...

Code: Select all

convert -size 70x40 canvas:white -annotate +20+20 "æøå" a.png
This is on Linux, using a shell that is configured to use the "en_US.UTF-8" locale.
If it doesn't work for you, you probably need to make sure you're using a UTF-8 locale.
by sas
2016-04-14T01:59:58-07:00
Forum: Users
Topic: Why do "-compose" settings inside parens affect operations outside of the parens?
Replies: 6
Views: 4310

Re: Why do "-compose" settings inside parens affect operations outside of the parens?

After an open-parenthesis, your list of images is empty. So you shouldn't have an operator like "-composite" because there are no images in the current list. Somehow it still worked though - the images I uploaded in the top post, are the result I got and it clearly blended the rose with the red can...
by sas
2016-04-13T12:40:08-07:00
Forum: Users
Topic: Why do "-compose" settings inside parens affect operations outside of the parens?
Replies: 6
Views: 4310

Why do "-compose" settings inside parens affect operations outside of the parens?

Take, for example, a simple composite operation (blending a rose with a red background): convert rose: \( -size 70x46 xc:red \) \( -compose Blend -define compose:args=50% -composite \) red.png https://i.imgur.com/1co2XiC.png So far so good. But now add a seemingly innocuous "-flatten" at the end, an...