473,325 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

how to rotate an image 180 degrees

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
Jul 23 '05 #1
6 8213
"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
Jul 23 '05 #2

"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?

Thanksin advance.
Leo Koolsbergen
Jul 23 '05 #3
"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
Jul 23 '05 #4

"Joakim Braun" <jo**********@jfbraun.removethis.com> schreef in bericht
news:bu*****************@nntpserver.swip.net...
"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


The viewer of the camera can rotate the image, but the saved images stay
upside down. Every time I use the activeX (from the cam) I have to rotate.
Jul 23 '05 #5
It could probably be done with filters in IE
http://msdn.microsoft.com/workshop/a...er/filters.asp but
wouldn't be very cross browser. I believe Mozilla also implements it's
own filters but I can't seem to find a link to them.

I would agree with the previous poster and do it on the server side
using PHP, perl or the imagemagick COM library if you are on an MS
server.

Jul 23 '05 #6
lo******@gmail.com schreef:
It could probably be done with filters in IE
http://msdn.microsoft.com/workshop/a...er/filters.asp but
wouldn't be very cross browser. I believe Mozilla also implements it's
own filters but I can't seem to find a link to them.

I would agree with the previous poster and do it on the server side
using PHP, perl or the imagemagick COM library if you are on an MS
server.


Ok. This filter works just fine. No problem with other browsers. It's for
the owner of the shop in which the camera is installed. And he uses IE.

Thanks to you all.

Leo Koolsbergen
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ACaunter | last post by:
Hi there, I was wonder how I could rotate an image in Asp.Net... I've found this code: Image1.Style.Add("filter", "progid:DXImageTransform.Microsoft.BasicImage(rotation=' + 1 + ')") ... but...
3
by: byrd48 | last post by:
Hi, I am developing a web site which allows users to upload and share photos. I have a datalist which lists the photos and has the usual edit, update commands. Within the edititemtemplate, I...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
1
by: iwdu15 | last post by:
hi, im trying to rotate a gdi drawn object on my form with a keypress....forinstance when i push the down arrow, for it to rotate the object drawn until the top is down, or if i push the right...
8
by: Samuel Shulman | last post by:
Is it possible and how to rotate pictures in HTML document Thank you, Samuel
3
by: Diego F. | last post by:
Hi all. I have a listview with images and my application must be able to rotate one image. I need a method to rotate 90 degrees rigth (i.e.). Is that possible? -- Regards, Diego F.
5
by: Gina_Marano | last post by:
Hey All, Is it possible to draw an image upside down? I am using Microsofts example of "Printing a local report without preview". The only trick is that I want to flip the image upside...
1
Thekid
by: Thekid | last post by:
Hi, I have an image similar to a clock, with numbers and letters going around in a circle. I need to extract the numbers and letters from the image and have them print out in a straight line and in...
0
by: harryusa | last post by:
I am experimenting with the rotate function and so far I can't get my code to return anything but the URL of my script. Here it is: <?php // The file you are rotating $image =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.