Rev cannot open my jpeg ! - and some serious thinking

Sarah Reichelt sarah.reichelt at gmail.com
Wed Jul 1 04:07:44 EDT 2009


>> Me for one. My app Pic-a-POD <http://www.troz.net/Pic-a-POD/> suffers
>> greatly from this problem as more and more large images appear on the
>> internet. At the moment I am forced to check for images with more than
>> 4000 pixels on any side, and if so, I just have to show a notice
>> saying that the image is too big to display.
>
> +1
>
> Pic-a-POD sits on my desktop :-)
>
> "POD" web sites do change their format from time to time, though...
> For instance, National Geographic leads to a "Picture is not in the
> correct format" warning.
> and Wikipedia furnishes regurlarly too big images!

Just to confirm this after some tests:
- the problem is on Mac only
- the height of the image does not seem to matter
- my test image displayed correctly at 4090 x 3000 pixels (72 dpi)
- my test image sometimes displayed correctly at 4091 x 3000 pixels (72 dpi)
- my test image failed at 4095 x 3000 pixels (72 dpi)

I have not yet done enough testing to tell whether the overall number
of pixels or the dpi alters this slightly variable cut-off point.
For Pic-a-POD, I intend to change "Can't display" message so it only
shows if the width of the image is > 4000 and the platform is Mac.

BTW, Dom there is now an update to Pic-a-POD that fixes the National
Geographic problem.

With regard to Wikipedia supplying enormous images, does anyone know a
method for determining the size of a download before it starts? Once
the download has begun the URLStatus gives the total size, but it
would be really useful to get this before starting. I guess I can see
whether I can get a directory listing but I doubt that would be
permitted. The only other option I can think of is to start
downloading invisibly, and stop after the first status report, suing
that data to see whether the incoming image file is too large.

Cheers,
Sarah



More information about the use-livecode mailing list