Solved

Cropping An Image

Posted on 1998-06-17
1
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html input 8 56
Button on Table, name table1 not working 4 34
How to escape unsafe HTML tags 4 36
Can't get video to center on page 2 13
This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
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…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

733 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