hzeller / timg

A terminal image and video viewer.
GNU General Public License v2.0
1.92k stars 73 forks source link

Magick Segmentation fault with auto-crop #75

Open xeruf opened 2 years ago

xeruf commented 2 years ago

Not sure if this is an upstream bug, so I will post it here first. Take the following image: jump4 ogg

And run

timg -g 111x2 --auto-crop jump4.ogg.png

In Kitty it is all fine: image

But in Konsole it escalates: image

This only happens when both -g and --auto-crop are given.

xeruf commented 2 years ago

image

hzeller commented 2 years ago

Maybe this is due to some rounding the image size close to one character cell, investigating (and no, probably not an GraphicsMagick bug but timg).