Help obtaining a specific texture effect

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Help obtaining a specific texture effect

Post by fmw42 »

Try this.

convert 1RaOUW.jpg \(tile.png -write mpr:tile +delete -clone 0 -tile mpr:tile -draw "color 0,0 reset" \) \
-compose modulate -define compose:args=10 -composite 1test.png
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Help obtaining a specific texture effect

Post by anthony »

Slightly more refined, using some tricky distortion viewport handling to avoid much of the hassle of draw and mpr usage.

Code: Select all

convert 1RaOUW.jpg  -set option:distort:viewport %G \( rose: -virtual-pixel tile -filter point  -distort SRT 0 \)
-compose modulate -define compose:args=10 -composite test.png
Note the viewport global must be set outside the parenthesis, to set an output image size the same size as the input image. NOTE you can even add +x+y to the viewport setting to 'roll' the tile, or use the the distortion to rotate or otherwise modify the tile (remove -filter point is you want to do that!)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Exilas
Posts: 13
Joined: 2011-11-25T11:07:51-07:00
Authentication code: 8675308

Re: Help obtaining a specific texture effect

Post by Exilas »

@all of you:
Goal accomplished! THANKS! To all of you for your helpful suggestions and time. Really appreciated!

Regards,
Exilas
Post Reply