cropping

how can move the child only inside the parent?

Recently I worked in a project using Flex. Its a Photo editing project. I have took a Canvas and take a image in that canvas using the code canvas.addChild(image) . Now i can move the image freely by using moving code. The image move inside the canvas and outside the canvas. I want to move the image/child only inside the canvas not outsi...

android cropping drawable

hi friends... I have a small project in which i download images from internet in the form of drawable and use them in Imageview for which i have provided functionality similar to an Imagebutton but without the gray edges. The question is that is there any functionality in Android(similar to iphone) by which we can crop the drawable fro...

Online Image editing Lib (like fotoflexer but open installable on my servers)

I would like to let my users edit their uploaded photos, e.g. with a flash interface like fotoflex.com at myspace (cropping, rotation, frames and whatnot) Are there any libs or flash programs you can recommend? Thx in advance ...

How does Facebook codes their Cropping tool?

I ask this because I am currently trying to work out my own technique, and there are huge strategic hangups for the entire site when your begin this. Of them are: Using jCrop and rMagick, it takes up a huge amount of processing ( to which I have backgrounded ). Because I have it backgrounded, I must by ajax develop a feature that auto-...

Obey the MediaBox/CropBox in PDF when using ghostscript to render a PDF to a png

I've been using ghostscript to convert my single figure plots rendered in PDF to png: gswin32c -sDEVICE=png16m -r300x300 -sOutputFile=junk.png -dBATCH -dNOPAUSE Figure_001-a.pdf This works in the sense I get a png out and it contians the plot. But it contains a huge amount of white space as well (an example source image: http://cdsweb...

C# images cropping,splitting,saving

Hi, as stated in subject, i have an image: private Image testing; testing = new Bitmap(@"sampleimg.jpg"); I would like to split it into 3 x 3 matrix meaning 9 images in total and save it.Any tips or tricks to do this simple? I'm using visual studios 2008 and working on smart devices. Tried some ways but i can't get it. This is...

[android] setting wallpaper through code

hi Friends, I was trying to make an app which also had the facility to let user select wallpaper he would like to set. I have managed this by calling the Gallery Intent. Once the user selects a specific image, the data path of the image is returned to me which then i preview to the user by setting the image onto an imageview. The probl...

Images appear cropped in iPod Touch, but they are fine on iPhone

Hi, I have images of size 100x50 each. I have to display them in an image view of smaller size. Hence I specify the image view frame width as 74 and height as 37 and I specify the content mode as UIViewContentModeScaleAspectFit. The images appear fine in simulator and also on iPhone 3G. But they appear slightly cropped at the bottom on ...

Image cropping in java

Hi All, I want to cut a particular shape of an image in java, for example an image which contains a man with white background, here I want to crop the man without the background. Don't want to make it as transparent image, want to cut with some coordinates. I think using the cropImageFilter we can only cut the rectangle region. Can anyo...

How to crop an image while uploading?

Hi I am doing an social networking project ,where i have an option to add/edit photos ,When user clicks the button the image will be uploaded to the database and it will be updated...is it possible to crop the image before it is saved to the database. ...

[VB.Net] Trim images (Crop to remove all blank areas)

Hello world! To reduce the size of some images I have, I'd like to remove the white paddings that some have. The idea would be that if one has large white areas on the borders, then those can be cropped to save some space. Any idea? Thank you, CFP. ...

Image Skimming with php & gd;

I have seen tons of examples of Cropping images with php & the gd lib however I have never seen any posts on Skimming or Shaving an image. What I mean by this is say you have pictures from a digital camera that places the date on picture. It is always in a constant place on the picture. So how would I do this? All examples I have come ac...

Simple image editing within browser on page (Java/Flash/Javascript)

I have a page that needs simple image editing within the page. It can be either in flash or Java. Are there any open source tools that you can recommend? I am looking for a flash or Java tool that can do the following: Cropping Resizing Nothing else required but simple features like this will be a plus If the above can be done in Jav...

PHP image Resize and Crop Function

I want a function which when i upload a photo it should crop the image irrespective of the ration of the image from the centre making sure the crop is well inside the image. the above image is 2592 * 1944 i want to crop an image of 159 * 129 and this is what i get when using a plugin for cakephp (Miles Johnsons Upload Plugin) can...

Imagefield Crop – use existing file

Is there a way to make a few images with Image Crop out of one uploaded file? Currently i have to upload the same, big pic to get new pics with various dimensions. Unfortunately the "Imagefield sources"-module doesn´t support Image Crop. Is there an alternative? ...

C# image manipulation using a console application throwing 'Out of Memory' Exception

I have a console application that successfully re-sizes an image while maintaining aspect ratio. I now need to crop the image the code I am using is below: using (var thumbnail = CropPicture(image, rectangle)) { EncoderParameters encParams = new EncoderParameters(1); encParams.Param[0] = new EncoderParameter(System.Drawing.Imag...

Custom cropping in Rails with Paperclip

I'm currently using Paperclip to upload an image and automatically generate a thumbnail. Now I would also like to add a second style that generates a one-pixel-wide image using the left-most column of pixels in the uploaded image (it should also have the same height as the original image). I'll be using the one-pixel-wide image as a repe...

Image Crop Amazon S3 (works offline)

Hey guys, So im trying to get image cropping to work on Amazon S3, I have the following function def update_attributes(att) scaled_img = Magick::ImageList.new(self.photo.to_file) orig_img = Magick::ImageList.new(self.photo.to_file(:original)) scale = orig_img.columns.to_f / scaled_img.columns args = [ att[:x1], att[:y1], att[:...

C# Using Emgu to crop an image by pixel color.

Hey i was wondering if anyone had any insight on how to crop an image by pixel color using the Emgu Wrapper. I have it already turn the image grayscale for processing and all the image that i don't need is black. Is there any way to crop these pixels out? Now I'm not talking about making them transparent, i physically want to make the o...

Crop part of image in php and resize it

I have a source image (can be any image with and have different dimensions). I want to be able to tell php an area from the image to crop out and resize. For example: The source image is 800x800 pixels. PHP selects a 50x50 pixel region of the image with the selection area starting 80 pixels from the top edge of the source image, and 10...