View from Caedmon Hall onto the Acre

The image should refresh itself automatically. If it does not appear, then reload the page.

Friday, September 23, 2011

Small Problems - Solved

This morning there had been a strange problem: the images were captured, but were all white. This had to do with the automatic camera exposure control, which failed to work. so the image was on "night" setting, with open aperture and full exposure, then hereby overexposing when the sun came out. It should automatically correct, because the auto-exposure setting is on. But I noticed this behavior already earlier some time ago: the exposure control does not always work, when the framerate of the camera itself is set to a low value (10 pic per second). I had to restart the camera, then the problem solved itself.

The other issue had a different cause: It appeared that when loading this blog web page, then in the beginning, there is no image shown. Only after the first refresh the image appeared. The reason for this error had not been apparent; in separate test of the script, the image appeared always the very first time; only in the blog there seemed this issue. The principle of the image display had been that in order to save bandwidth, a temporary image was created on the server, based on the requests for image size. This ensured that when only a small image is requested, for example from a mobile phone, then only the image in the resized form would be transmitted. This works fine - except in the blog when loaded for the first time. It appears that the image file creation takes too long, and the file is not ready when it is supposed to be shown. Still, not yet explainable, as an earlier PHP query for the file shows its size, indicating that it already exists. But for some reason, the <img> tag then is still not able to produce the image. The solution: I abandoned for now the image resizing, and the script is now sending the full image out, independent for the size request. This at least works, and the image is available without delay.

No comments: