Closed yoichi closed 5 years ago
On iTerm2, longcat -n 190 shows a longcat, but longcat -n 191 shows broken_image.png instead of a pretty longcat.
Because iTerm2 processes an image with size smaller than
static const CGFloat kMaxDimension = 10000;
in https://github.com/gnachman/iTerm2/blob/master/sources/iTermImage.m. (iTerm2 debug log says "iTermImage.m:276 (-[iTermImage initWithJson:]): Bogus size {126, 10033}")
This is a workaround for it by resizing image not to exceed the threshold.
Regards,
Thank you.
On iTerm2, longcat -n 190 shows a longcat, but longcat -n 191 shows broken_image.png instead of a pretty longcat.
Because iTerm2 processes an image with size smaller than
in https://github.com/gnachman/iTerm2/blob/master/sources/iTermImage.m. (iTerm2 debug log says "iTermImage.m:276 (-[iTermImage initWithJson:]): Bogus size {126, 10033}")
This is a workaround for it by resizing image not to exceed the threshold.
Regards,