Search found 8873 matches

by anthony
2016-12-21T17:46:54-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 2048

Re: IM 7 Improvements and Scripting

At the moment the features I know is working. magick -script file.mgk Where file.mgk contains all the command line options that you would normally put on the command line. but without all the shell escapes, for shell meta characters and end of lines, and with '#' comments or full line comments if th...
by anthony
2016-12-20T22:02:12-07:00
Forum: Users
Topic: IM 7 Improvements and Scripting
Replies: 11
Views: 2048

Re: IM 7 Improvements and Scripting

The benefit is you can create complex functions... for example magick image.jpg \ -script circle_mask.mgk \ -script add_border.mgk \ -script 3d_warp.mgk \ -script thumbnail.mgk \ output.png You can call a -script multiple times if needed. It may be we can get true functions (code blocks) at some poi...
by anthony
2016-12-20T18:53:11-07:00
Forum: Users
Topic: About "-shear" and "-distort affineprojection"
Replies: 8
Views: 1765

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

There are basically two types of shear. One by by rotating a vector, The other by just pushing the vector to one side. Shears are normally given to be a simpler 'side-push', So tan would be the correct math. I updated the linked to example to reflect that. I only used sin() in that example because I...
by anthony
2016-12-20T17:39:28-07:00
Forum: Users
Topic: About "-shear" and "-distort affineprojection"
Replies: 8
Views: 1765

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: 3942

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: 3942

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: 987

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: 1765

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: 1235

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: 2048

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: 2048

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: 1583

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: 1337

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: 1872

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: 1766

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...