Page 1 of 1

Division by zero while cropping

Posted: Sun Apr 26, 2015 7:38 am
by sanja1989
Sometimes division by zero occurs while cropping images. Just trying to crop part of image with A4 proportions.
Sample image: http://sorokin.pro/dumps/divby0/BWV_538_8.tif
Screenshot: http://sorokin.pro/dumps/divby0/div_by_0.png
Dump: http://sorokin.pro/dumps/divby0/div_by_0.7z

Re: Division by zero while cropping

Posted: Sun Apr 26, 2015 8:34 am
by xnview
which part do you crop to crash?

Re: Division by zero while cropping

Posted: Sun Apr 26, 2015 8:56 am
by sanja1989
Center. It is not happening every time. I just tried 10 times and all was OK. But few hours ago it happened few times.

Re: Division by zero while cropping

Posted: Sun Apr 26, 2015 9:06 am
by sanja1989
I reproduced it!
It happens when I trying to open few files.
I want to open 6 files, it opens only 5 of them.
Here is the video: http://sorokin.pro/dumps/divby0/20150426_120124.mp4
And files: http://sorokin.pro/dumps/divby0/TIFF.zip

Re: Division by zero while cropping

Posted: Sun Apr 26, 2015 1:32 pm
by xnview
it seems that your pictures are big so you can't open them all

Re: Division by zero while cropping

Posted: Sun Apr 26, 2015 2:27 pm
by sanja1989
But what is with division by zero?

Re: Division by zero while cropping

Posted: Sun Apr 26, 2015 4:33 pm
by xnview
sanja1989 wrote:But what is with division by zero?
it's a crash if xnview can't load picture