Solved

Cropping An Image

Posted on 1998-06-17
1
324 Views
Last Modified: 2010-04-09
I know how to resize an image using the img tag but is there any way to crop an image???

Jeff
0
Comment
Question by:jkelly061597
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 total points
ID: 1844235
If you wish to give the viewer the appearance of cropping, you can chop the image in bits and replace selected pieces with blank images

You can also use frames with a given absolute size and show a bigger image in the frame - MSIE4 and NS3+ can the scroll the image inside the frame so it is centered.

If you want to actually physically crop teh image you need to go JAVA, not JavaScript. Java 1.1 has built-in image handling for gif and jpg

Michel
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now