How give to imagemagick imagesize like parametr in bash?
Posted: 2017-07-01T03:37:59-07:00
I trying create B.png which will have same size as A.png, and will be created by tiling pencil.png. What I do:
but magick give me error:
if I set my size of image all works:
So how give to convert command size of another image?
Code: Select all
#!/bin/bash
size=$(identify -format %wx%h $1)
convert -size ${size} tile:pencil.png pencil_ground.png
Code: Select all
convert: invalid argument for option `-size': tile:pencil.png @ error/convert.c/ConvertImageCommand/2753.
Code: Select all
#!/bin/bash
size=$(identify -format %wx%h $1)
convert -size 500x500 tile:pencil.png pencil_ground.png