Solved

Cropping An Image

Posted on 1998-06-17
1
326 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

776 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