"Leo Koolsbergen" <lk*******************@gmx.net> skrev i meddelandet
news:41**********************@nova.planet.nl...
"McKirahan" <Ne**@McKirahan.com> schreef in bericht
news:dr0yd.612343$D%.954@attbi_s51... "Leo Koolsbergen" <lk*******************@gmx.net> wrote in message
news:41**********************@nova.planet.nl... Hallo,
Maybe a very simpel problem, but I cannot find a solution. From a
webcam I
can retreive pictures, but as the cam is positioned upside down I have
to rotate the (jpeg) pictures. I've searched about 50 javascripts sites,
but I did not find what I am looking for. Can anyone help me with this?
Greetings
Leo Koolsbergen
Check out this link:
http://www.walterzorn.com/rotate_img/rotate_img.htm
I found this site before I asked the question. Didn't seem to work. I
think I don't know enough about javascript. Can someone show how to use this
script?
You did download and correctly link the linked script
http://www.walterzorn.com/scripts/wz_rotateimg.js , which is required for
the function to work? There's also a note in that script file about a
transparent image needed for Netscape. The walterzorn.js file may also be
required.
From the description, note that the script appears to make one copy of the
image for each pixel. So a 100x100 pixel picture will be copied and
displayed 10 000 times, and a 600x800 image 460 000 times. This may not make
for a good user experience.
Image rotation can be done easily with server-side technology like PHP, but
AFAIK not with standard Javascript/Ecmascript. But perhaps the camera
software could be set to deliver a rotated picture?
Joakim Braun