Page 1 of 2
Possible bug in IsPicture()
Posted: Thu Nov 25, 2010 11:11 am
by Allanon
Hello Andreas,
I think there is something wrong in the IsPicture() function for big pictures because if I do:
Code: Select all
...
Local test, properties = IsPicture(my_picture_file)
...
properties.height gives me always 1 pixel, I've tried to load the picture in a brush and then getting the height with GetAttribute() and I get the right size.
This happends only for big pictures, let's say picture with height > 1000 because under this size I get the correct values.
The error has occurred with jpg pictures, I haven't tried with other formats.
Best Regards,
Fabio
Re: Possible bug in IsPicture()
Posted: Fri Nov 26, 2010 12:04 pm
by jalih
Hello,
I just tested
IsPicture() function with some really big jpg pictures. Seemed to work properly, at least on Windows version.
Re: Possible bug in IsPicture()
Posted: Fri Nov 26, 2010 3:17 pm
by airsoftsoftwair
Can you provide an example picture which doesn't work correctly?
Re: Possible bug in IsPicture()
Posted: Fri Dec 17, 2010 9:06 pm
by airsoftsoftwair
There was indeed a bug with some JPEG pictures. It's fixed now.
Re: Possible bug in IsPicture()
Posted: Sat Dec 18, 2010 11:30 pm
by Allanon
OMG, I've forgot to send you the sample images!!
I'm sorry Andreas!
Re: Possible bug in IsPicture()
Posted: Sun Dec 19, 2010 11:43 am
by airsoftsoftwair
No problem, Tuxedo sent me an example image which helped me track down this bug

Re: Possible bug in IsPicture()
Posted: Sun Feb 23, 2014 2:24 pm
by lazi
I think there is still problems with this function.
Here is a jpg picture which makes bad dimension results:
https://www.dropbox.com/l/q8lCKW75UZ4iYHzJ61DZHR?text=1
Re: Possible bug in IsPicture()
Posted: Sun Feb 23, 2014 6:28 pm
by airsoftsoftwair
That's a bug in that EPEG plugin prototype I sent you some months ago... it doesn't support
IsPicture() correctly

Re: Possible bug in IsPicture()
Posted: Sun Feb 23, 2014 7:38 pm
by lazi
Ohh
That's a veeery handy and useful plugin. I hope you will fix it and make it available for all platforms at some time.
Re: Possible bug in IsPicture()
Posted: Sun Feb 23, 2014 7:42 pm
by lazi
@Andreas:
Confirmed. Without the EPEG plugin I can get correct picture dimensions.