Skip to main content

New answers tagged

0 votes

imagemagick convert: limit trim to max X px

Here's an idea of a way to do it. First, create a left-right gradient image to work with so we can see what we are doing: magick -size 100x256 gradient: -rotate 90 a.png Now crop off the left and ...
Mark Setchell's user avatar
0 votes

Imagemagick: Can I set a max height of the watermark image?

Let's make two sample images to work with, your main image and your watermark, both 100x100: magick -size 100x100 xc:red image.png magick -size 100x100 xc:blue watermark.png Now you have two options: ...
Mark Setchell's user avatar
1 vote
Accepted

How to generate full-page QR code from command line?

Change your resize to scale which uses "nearest neighbour" interpolation - i.e. it only uses colours already present in the original image without introducing new ones by doing interpolation ...
Mark Setchell's user avatar
0 votes

How to draw a red vertical line in center over image in terminal bash?

With v7 ImageMagick, there is no need to use the shell to calculate the position of the line, ImageMagick can do it for you very simply all in one command using fx expressions: First make a 640x480 ...
Mark Setchell's user avatar
1 vote
Accepted

How to concatenate various jpgs pngs and pdf into single pdf leaving their sizes as they where?

Assuming the files can be enumerated with a simple * wildcard (based on "The order is already solved as the filenames are nicely numbered"), we can use a loop like this: #!/bin/sh k=1 mkdir ...
Chris Davies's user avatar

Top 50 recent answers are included