Search found 8885 matches

by anthony
2016-12-20T17:39:28-07:00
Forum: Users
Topic: About "-shear" and "-distort affineprojection"
Replies: 8
Views: 3323

Re: About "-shear" and "-distort affineprojection"

The example command at THIS link makes a shear that looks like about 20 degrees, but it's off by a bit. Substituting another angle, like 45 degrees, clearly shows an incorrect result. That example command will work properly, however, by using the tangent function instead of the sine function. I'll ...
by anthony
2016-12-20T00:17:46-07:00
Forum: Users
Topic: Make png image semi transparent
Replies: 24
Views: 8709

Re: Make png image semi transparent

So it has gone back to what it was before v6.7.9 where it pretty much ignored the alpha channel.
making it equivelent to +level-color {color}
by anthony
2016-12-19T23:54:31-07:00
Forum: Users
Topic: Make png image semi transparent
Replies: 24
Views: 8709

Re: Make png image semi transparent

General... Masks as colored Shapes.. http://www.imagemagick.org/Usage/masking/#shapes But in your case just using +level-colors Gold would convert teh black shape to a Gold Shape http://www.imagemagick.org/Usage/color_mods/#level-colors Or a more complex and older technique -fill Gold -colorize 100%...
by anthony
2016-12-19T23:49:15-07:00
Forum: Users
Topic: Filelist (@list.txt) quote escape
Replies: 4
Views: 1714

Re: Filelist (@list.txt) quote escape

Technically under unix filenames can even contain newline and return charactors! The ONLY characters a filename can not have is slash '/' and null (character code 0). which is why find has a -print0 and xargs has a -0 form. For ImageMagick. I am not certian what the limitations or even what the deli...
by anthony
2016-12-19T23:40:46-07:00
Forum: Users
Topic: About "-shear" and "-distort affineprojection"
Replies: 8
Views: 3323

Re: About "-shear" and "-distort affineprojection"

if you are resizing an image as well as shear.. I would seriously consider doing the shear first then then resize. Note however that shear uses pixel movement to do the 'warping', An Affine distortion uses 'ellipticatal area sampling) whcih will often give better results, and will let you do the res...
by anthony
2016-12-19T23:28:11-07:00
Forum: Users
Topic: convert "info:" option as a way of using convert for identify?
Replies: 4
Views: 2351

Re: convert "info:" option as a way of using convert for identify?

In a NAS.. interesting.. I have a ReadyNAS myself as my first NAS.
by anthony
2016-12-19T19:40:36-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 4114

IM 7 Improvements and Scripting

Magick scripts are basically just the command line options as a script. For example in the ImageMagick sources is a sub-directory "api_examples". Here is a 'normal' shell script #!/bin/sh # # Assumes the "magick" command has been installed # magick -size 100x100 xc:red \ \( rose: -rotate -90 \) \ +a...
by anthony
2016-12-18T19:42:51-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 4114

IM 7 Improvements and Scripting

Other changes.... It also allows 'magick' scripts (same result regradless of UNIX/Dos), complex sub-scripts can be called as 'functions', and pipelined scripts into commands (so a program can control a 'magick' sub-process on the fly). This is why IMv7 option handling was re-organised, allowing it t...
by anthony
2016-12-18T19:37:14-07:00
Forum: Users
Topic: Image gets cut off when arcing after rotating
Replies: 7
Views: 2459

Re: Image gets cut off when arcing after rotating

Its probably because -rotate switched to using -distort underneath in IM v.6.7.3-4. It probably should do the +repage internally (before and after the internal distort) to ensure it remains a 'simple image warp'. It may be IMv6 got that change but not IMv7. Actually I just updated the rotate example...
by anthony
2016-12-15T23:42:12-07:00
Forum: Users
Topic: Odd results while using SRT
Replies: 6
Views: 2562

Re: Odd results while using SRT

AH. Ok. I think I solved my problem. It seems it's much easier to use SRT for the scale, and move the viewport accordingly for the 'panning'. Is there anything inherently wrong with this approach? That means you do two operations on the image. Though as long as the panning involves only whole numbe...
by anthony
2016-12-15T23:24:48-07:00
Forum: Users
Topic: JPEG file size increase with upgraded version
Replies: 12
Views: 3654

Re: JPEG file size increase with upgraded version

Could the older version of IM have been built using a different JPEG library?
by anthony
2016-12-15T23:11:09-07:00
Forum: Bugs
Topic: Inconsistent behavior with "-define distort:viewport"
Replies: 4
Views: 2963

Re: Inconsistent behavior with "-define distort:viewport"

If you mean that percent escapes in "define" does not expand percent escapes when used in IMv6, WHEN it is actually used... That is just a 'new feature' of IMv7 coming from the same cade that is used to set 'labels' on images as they are read in (a IMv6 feature expanded to more general use). For exa...
by anthony
2016-12-15T22:39:59-07:00
Forum: Bugs
Topic: Inconsistent behavior with "-define distort:viewport"
Replies: 4
Views: 2963

Re: Inconsistent behavior with "-define distort:viewport"

-define does not use the expressions, but saves them for later use. That was because define often had to 'save' the percent escapes until later when an image is read. Also -define does not attache to images but globally, where -set are attached to images. The quintessential case of this was -label w...
by anthony
2016-12-14T18:12:40-07:00
Forum: Users
Topic: Using connected components tool
Replies: 18
Views: 4792

Re: Using connected components tool

To distinguish between the leaves and other parts I would look at using morphology on the mask image. This is actually what morphology was designed originally to do.. find objects of particular characteristics. First I would look at closing any small 'holes' that might be in the leaves, then do some...
by anthony
2016-12-14T17:20:19-07:00
Forum: Users
Topic: Crop with negative offsets
Replies: 3
Views: 1650

Re: Crop with negative offsets

There is a cavat with using -extent, for image with transparency...
But as JPEG images have no transparency that should not be a problem for you.

See IM Exmaples
http://www.imagemagick.org/Usage/crop/#extent