crop

Is cropping of jpeg images using the PIL lossless?

A simple questions really. If you crop a jpeg image using the Python Imaging Library, is the resulting image recompressed, or is it lossless? ...

FileNotFoundException when cropping a photo

I'm trying to crop a photo to use in a Live Wallpaper but I'm getting a FileNotFoundException when the crop activity tries to save my new cropped image. This is the code I'm using: File file = new File(getFilesDir(), "wallpaper.jpg"); Intent intent = new Intent("com.android.camera.action.CROP"); intent.setData(uri); DisplayMetrics met...

Image Cropper UI has white / opaque crop area on ONE machine using IE 8

We are using Defusion.org.uk's Image Cropper UI. It's working fine on all versions of IE/Firefox/Safari, with ONE exception... one machine that I tried it on tonight shows a white area where the transparent crop area should be displayed. Strangely enough, we've tried this on other machines running the same (most recent) version of IE 8...

BlackBerry - Develope Cropit Like Application

hi i want to develop cropit like application, i just want to know how to increase or decrease the size of the rectangle over the image (multitouch events), which define the image portion to be cropped. Thanks alot ...

Cropping audio with XNA

I'm new to XNA and am trying to allow the user to edit an audio file they've loaded in. In XNA, is it possible to select a time frame (e.g. 0:00 - 0:10) and 'crop' that part as a separate entity? I guess, essentially, it's simply copying that data to a new file. Can this be done using the XNA Audio library and, if so, what methods should...

Crop image to smallest size by removing transparent pixels in java

I have a sprite sheet which has each image centered in a 32x32 cell. The actual images are not 32x32, but slightly smaller. What I'd like to do is take a cell and crop the transparent pixels so the image is as small as it can be. How would I do that in Java (JDK 6)? Here is an example of how I'm currently breaking up the tile sheet i...

PHP crop image to fix width and height without losing dimension ratio

hi, im looking to create thumbnails that has 100px by 100px dimension. i've seen many articles explaining the methods but most end up having the width!=height if the dimension ratio is to be kept. for example, i have a 450px by 350px image. i would like to crop to 100px by 100px. if i were to keep the ratio, i would end up having 100px ...

Crop and resize image on clientside

Is it possible to work with client chosen images on client PC without uploading image to server. If yes, what web programming language can do that? ...

C# - Crop Transparent/White space

I'm trying to remove all white or transparent pixels from an image, leaving the actual image (cropped). I've tried a few solutions, but none seem to work. Any suggestions or am I going to spend the night writing image cropping code? ...

Crop Bitmap without reading entire Bitmap first

I have a very large image and I only want to display a section the size of the display (no scaling), and the section should just be the center of the image. Because the image is very large I cannot read the entire image into memory and then crop it. This is what I have so far but it will give OutOfMemory for large images. Also I don't th...

How do I prevent floated-right content from overlapping main content?

I have the following HTML: <td class='a'> <img src='/images/some_icon.png' alt='Some Icon' /> <span>Some content that's waaaaaaaaay too long to fit in the allotted space, but which can get cut off.</span> </td> It should display as follows: [Some content that's wa [ICON]] I have the following CSS: td.a span { overflow: hidde...

Image cropping like facebook

For those that have been on facebook it allows you to upload an image to use as your avatar, and if that image is too large you can drag it around in a container to set the co-ordinates of the crop. Can anyone Help me out to implement this functionality in c# ASP.NET ...

How to manage Images and Thumbnails ?

I wanna know how photos are managed on websites. Ex: A user uploads a Photo.. say which is 1024 * 768.. I have differnt size thumb nails on the website. 60 * 60 30 * 30 120 * 90 240 * 180 Since all the above images are not of the same aspec ratio. which is the best way to resize and crop images to suit my needs ? Note: Images wil...

how to crop html page, not image

I need to select a part of html page and get coordinates of selection, not image - i want to realize this like image cropping (square selection area), how can i do it? in more detail i want next: in browser on html page i'm click button, then all page are disabled and become darkgrey color, but small window is showing in real page color...

Crop function BitBlt(...)

Hi, I want to create a crop function in an existing engine. This is what I already have: bool Bitmap::Crop(RECT cropArea) { BITMAP bm; GetObject(m_Handle, sizeof(bm), &bm); HDC hSrc = CreateCompatibleDC(NULL); SelectObject(hSrc, m_Handle); HDC hNew = CreateCompatibleDC(NULL); HBITMAP hBmp = CreateCompatibleBitmap(hNew, bm.bmWidth, bm...

Cropping Picture Issue on Droid X

I'm running into an issue with my program when trying to crop an image selected by the user from their gallery. The issue so far only appears when running on a Droid X, as running on the original moto Droid works fine. Basically the issue occurs as the cropping intent is being run. Once the user crops the photo and clicks the save butt...

Crop non symmetric area of an image with Python/PIL

Is there a way to cut out non rectangular areas of an image with Python PIL? e.g. in this picture I want to exclude all black areas as well as towers, rooftops and poles. http://img153.imageshack.us/img153/5330/skybig.jpg I guess the ImagePath Module can do that, but furthermore, how can I read data of e.g. a svg file and convert it in...

How would one make this shape in an HTML5 canvas?

Hello, I'm wonder how you would go about and create a shape similar to this one below in HTML5 Canvas. It's more or less a cropped circle I guess, though my need would render it a synch different. context.fillStyle = "#000"; context.beginPath(); context.arc(200,200,100,0,Math.PI*2,true); context.closePath(); context.fill(); Now to c...

Cropping whitespace from an Image

Hi guys, Anyone know of a good method of cropping whitespace from an image? I have an external method which generates Image objects containing charts, but unfortunately they have lots of white space which I would like to remove. Thanks, Alex ...

Silverlight 4.0 - image cropping with mouse events

Hi, I have a task to build image cropping functionality in Silverlight 4.0 application. What I need to do is to have user on the left button mouse click select area to remain after cropping is applied and then call some other event (button click maybe) to apply that cropping itself. I did develop similar functionality for rotation. I a...