Hi!
The following tile cropping example works for jpg and png output format:
convert file.jpg -crop 25x25 +repage +adjoin jpg:tile
It will correctly create several files such as tile-0, tile-1, tile-2, etc
But if you use webp output format:
convert file.jpg -crop 25x25 +repage +adjoin webp:tile
It will only crop the very first tile and name it just 'tile'.
ImageMagick 6.9.5-8 Q16 x86_64
webp 0.5.1
Is that a problem with WebP library from Google or somewhere in ImageMagick?
Thanks!
Tile Cropping not working with WebP
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Tile Cropping not working with WebP
This works just fine for me on IM 6.9.5-9 Q16 Mac OSX.
as does this
I get tmp-0.webp thru tmp-8.webp
I think you should be adding a suffix.
Are you sure IM can see your webp delegate library. Does it get listed when you do
Code: Select all
convert logo: -crop 300x200 +repage +adjoin tmp.webp
Code: Select all
convert logo: -crop 300x200 +repage +adjoin webp:tmp.webp
I think you should be adding a suffix.
Are you sure IM can see your webp delegate library. Does it get listed when you do
Code: Select all
convert -version
Re: Tile Cropping not working with WebP
No, its not listed.
I'm also using Max OSX and both webp and IM are installed using brew. Strangely I can output proper webp images using
but I don't get multiple cropping tiles.
I'm going to reinstall both with brew now..
I'm also using Max OSX and both webp and IM are installed using brew. Strangely I can output proper webp images using
Code: Select all
convert logo: webp:tmp.webp
but I don't get multiple cropping tiles.
I'm going to reinstall both with brew now..
Re: Tile Cropping not working with WebP
I've reinstalled IM with
And it works correctly now. Thanks!
(brew re-compiled it from source instead of pouring)brew install imagemagick --with-webp
And it works correctly now. Thanks!