Tile Cropping not working with WebP

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
oleksiy
Posts: 12
Joined: 2014-11-22T16:53:32-07:00
Authentication code: 6789

Tile Cropping not working with WebP

Post 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!
User avatar
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

Post 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
oleksiy
Posts: 12
Joined: 2014-11-22T16:53:32-07:00
Authentication code: 6789

Re: Tile Cropping not working with WebP

Post 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..
oleksiy
Posts: 12
Joined: 2014-11-22T16:53:32-07:00
Authentication code: 6789

Re: Tile Cropping not working with WebP

Post 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!
Post Reply