use -write
The only place a -write is implied is on the end of the command line.
-read does remain implied for any option not starting with a '-' or '+', but in a script it may be better of also using -read to be explicit.
Search found 8887 matches
- 2016-12-21T18:04:51-07:00
- Forum: Users
- Topic: IM 7 Improvements and Scripting
- Replies: 11
- Views: 12181
- 2016-12-21T17:46:54-07:00
- Forum: Users
- Topic: IM 7 Improvements and Scripting
- Replies: 11
- Views: 12181
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...
- 2016-12-20T22:02:12-07:00
- Forum: Users
- Topic: IM 7 Improvements and Scripting
- Replies: 11
- Views: 12181
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...
- 2016-12-20T18:53:11-07:00
- Forum: Users
- Topic: About "-shear" and "-distort affineprojection"
- Replies: 8
- Views: 9066
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...
- 2016-12-20T17:39:28-07:00
- Forum: Users
- Topic: About "-shear" and "-distort affineprojection"
- Replies: 8
- Views: 9066
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 ...
- 2016-12-20T00:17:46-07:00
- Forum: Users
- Topic: Make png image semi transparent
- Replies: 24
- Views: 26602
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}
making it equivelent to +level-color {color}
- 2016-12-19T23:54:31-07:00
- Forum: Users
- Topic: Make png image semi transparent
- Replies: 24
- Views: 26602
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%...
- 2016-12-19T23:49:15-07:00
- Forum: Users
- Topic: Filelist (@list.txt) quote escape
- Replies: 4
- Views: 5308
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...
- 2016-12-19T23:40:46-07:00
- Forum: Users
- Topic: About "-shear" and "-distort affineprojection"
- Replies: 8
- Views: 9066
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...
- 2016-12-19T23:28:11-07:00
- Forum: Users
- Topic: convert "info:" option as a way of using convert for identify?
- Replies: 4
- Views: 7245
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.
- 2016-12-19T19:40:36-07:00
- Forum: Users
- Topic: IM 7 Improvements and Scripting
- Replies: 11
- Views: 12181
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:...
- 2016-12-18T19:42:51-07:00
- Forum: Users
- Topic: IM 7 Improvements and Scripting
- Replies: 11
- Views: 12181
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...
- 2016-12-18T19:37:14-07:00
- Forum: Users
- Topic: Image gets cut off when arcing after rotating
- Replies: 7
- Views: 6302
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...
- 2016-12-15T23:42:12-07:00
- Forum: Users
- Topic: Odd results while using SRT
- Replies: 6
- Views: 8460
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...
- 2016-12-15T23:24:48-07:00
- Forum: Users
- Topic: JPEG file size increase with upgraded version
- Replies: 12
- Views: 9119
Re: JPEG file size increase with upgraded version
Could the older version of IM have been built using a different JPEG library?