|
Posted by Deepa on August 6, 2004, 11:56 pm
Please log in for more thread options
Hi All,
I'm facing problem displaying image of size 5000X5000 .My window size
is smaller than image size so i'm not able to see the complete image.i
can use scroll bars to view the image but i need to rotate the image
and the see the result everytime.
For this my boss has given me suggestion to display only 20% of the
image on window ,and rotation has to be applied to original copy.
can someone explain me how to proceed with this problem.
With regards,
Deepa.
|
|
Posted by Lachlan Hunt on August 7, 2004, 12:08 pm
Please log in for more thread options
Deepa wrote:
> I'm facing problem displaying image of size 5000X5000 .My window size
> is smaller than image
That is a massive image, I don't know of any screens that go anywhere
near that size. It would also mean that the image file is huge. I hope
your not intending to send that to users on the Internet. An intranet
may be ok, but an average user, especially on dial up, will have to wait
a long time to download it.
> can use scroll bars to view the image but i need to rotate the image
> and the see the result everytime.
So, use an image editor to rotate the image. Other than that, you'd
have to use server side processing to rotate it, and then send it back
to the user as a new image. There is no way to rotate an image in HTML.
There may be in CSS (I know there's text rotation in CSS3) but nothing
that's supported.
> For this my boss has given me suggestion to display only 20% of the
> image on window ,and rotation has to be applied to original copy.
You can use CSS height and width properties to change the size of the
image, or HTML's height and width attributes for <img/>, but if this is
going to be sent over the internet I suggest generating a thumbnail
(with server side processing) so the user can decide on the orientation
and then view the full size image. Also, browsers such as Mozilla
automatically rezise the image fit the window when not viewed within a
web page. That may be an easier option, but requires the user to have a
browser that supports that feature.
--
Lachlan Hunt
http://www.lachy.id.au/
Please direct all spam to abuse@127.0.0.1
Thank you.
|
|
Posted by Lachlan Hunt on August 7, 2004, 12:08 pm
Please log in for more thread options Deepa wrote:
> I'm facing problem displaying image of size 5000X5000 .My window size
> is smaller than image
That is a massive image, I don't know of any screens that go anywhere
near that size. It would also mean that the image file is huge. I hope
your not intending to send that to users on the Internet. An intranet
may be ok, but an average user, especially on dial up, will have to wait
a long time to download it.
> can use scroll bars to view the image but i need to rotate the image
> and the see the result everytime.
So, use an image editor to rotate the image. Other than that, you'd
have to use server side processing to rotate it, and then send it back
to the user as a new image. There is no way to rotate an image in HTML.
There may be in CSS (I know there's text rotation in CSS3) but nothing
that's supported.
> For this my boss has given me suggestion to display only 20% of the
> image on window ,and rotation has to be applied to original copy.
You can use CSS height and width properties to change the size of the
image, or HTML's height and width attributes for <img/>, but if this is
going to be sent over the internet I suggest generating a thumbnail
(with server side processing) so the user can decide on the orientation
and then view the full size image. Also, browsers such as Mozilla
automatically rezise the image fit the window when not viewed within a
web page. That may be an easier option, but requires the user to have a
browser that supports that feature.
--
Lachlan Hunt
http://www.lachy.id.au/
Please direct all spam to abuse@127.0.0.1
Thank you.
|
|
Posted by Lachlan Hunt on August 7, 2004, 12:09 pm
Please log in for more thread options Deepa wrote:
> I'm facing problem displaying image of size 5000X5000 .My window size
> is smaller than image
That is a massive image, I don't know of any screens that go anywhere
near that size. It would also mean that the image file is huge. I hope
your not intending to send that to users on the Internet. An intranet
may be ok, but an average user, especially on dial up, will have to wait
a long time to download it.
> can use scroll bars to view the image but i need to rotate the image
> and the see the result everytime.
So, use an image editor to rotate the image. Other than that, you'd
have to use server side processing to rotate it, and then send it back
to the user as a new image. There is no way to rotate an image in HTML.
There may be in CSS (I know there's text rotation in CSS3) but nothing
that's supported.
> For this my boss has given me suggestion to display only 20% of the
> image on window ,and rotation has to be applied to original copy.
You can use CSS height and width properties to change the size of the
image, or HTML's height and width attributes for <img/>, but if this is
going to be sent over the internet I suggest generating a thumbnail
(with server side processing) so the user can decide on the orientation
and then view the full size image. Also, browsers such as Mozilla
automatically rezise the image fit the window when not viewed within a
web page. That may be an easier option, but requires the user to have a
browser that supports that feature.
--
Lachlan Hunt
http://www.lachy.id.au/
Please direct all spam to abuse@127.0.0.1
Thank you.
|
|
Posted by Lachlan Hunt on August 7, 2004, 12:10 pm
Please log in for more thread options Deepa wrote:
> I'm facing problem displaying image of size 5000X5000 .My window size
> is smaller than image
That is a massive image, I don't know of any screens that go anywhere
near that size. It would also mean that the image file is huge. I hope
your not intending to send that to users on the Internet. An intranet
may be ok, but an average user, especially on dial up, will have to wait
a long time to download it.
> can use scroll bars to view the image but i need to rotate the image
> and the see the result everytime.
So, use an image editor to rotate the image. Other than that, you'd
have to use server side processing to rotate it, and then send it back
to the user as a new image. There is no way to rotate an image in HTML.
There may be in CSS (I know there's text rotation in CSS3) but nothing
that's supported.
> For this my boss has given me suggestion to display only 20% of the
> image on window ,and rotation has to be applied to original copy.
You can use CSS height and width properties to change the size of the
image, or HTML's height and width attributes for <img/>, but if this is
going to be sent over the internet I suggest generating a thumbnail
(with server side processing) so the user can decide on the orientation
and then view the full size image. Also, browsers such as Mozilla
automatically rezise the image fit the window when not viewed within a
web page. That may be an easier option, but requires the user to have a
browser that supports that feature.
--
Lachlan Hunt
http://www.lachy.id.au/
Please direct all spam to abuse@127.0.0.1
Thank you.
|
| Similar Threads | Posted | | force larger image into same ? | February 21, 2008, 3:59 am |
| Use frame to show window into larger image? | February 18, 2006, 12:09 am |
| Netscape/Firefox image display issue | February 21, 2006, 2:50 pm |
| fixed image size | February 12, 2007, 1:53 pm |
| Restricting inline image size | March 29, 2005, 6:56 pm |
| Re: Restricting inline image size | March 29, 2005, 9:24 pm |
| Re: Restricting inline image size | March 30, 2005, 2:07 am |
| client-side image size changing question | June 22, 2005, 6:26 am |
| Firefox - Prevent TextField size change when user changes font size? | October 3, 2006, 6:21 pm |
| Creating image maps with Adobe Illustrator or Image Ready. | March 8, 2005, 12:42 pm |
|