Page 1 of 1

Tile Cropping not working with WebP

Posted: 2016-09-15T10:05:14-07:00
by oleksiy
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!

Re: Tile Cropping not working with WebP

Posted: 2016-09-15T10:16:05-07:00
by fmw42
This works just fine for me on IM 6.9.5-9 Q16 Mac OSX.

Code: Select all

convert logo: -crop 300x200 +repage +adjoin tmp.webp
as does this

Code: Select all

convert logo: -crop 300x200 +repage +adjoin webp:tmp.webp
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 -version

Re: Tile Cropping not working with WebP

Posted: 2016-09-15T10:25:53-07:00
by oleksiy
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

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

Posted: 2016-09-15T10:31:14-07:00
by oleksiy
I've reinstalled IM with
brew install imagemagick --with-webp
(brew re-compiled it from source instead of pouring)

And it works correctly now. Thanks!