Questions tagged [image-manipulation]

Image manipulation is the term used to describe various operations applied to images such as resizing, removing noise, or alteration of colour depth.

Image manipulation is the term used to describe various operations applied to images such as resizing, removing noise, alteration of colour depth. These operations are usually performed to improve the quality of the image (such as the removal of noise) or to alter it so that the image file is better suited to its intended usage(such as resizing to meet display constraints on a mobile device).

1495 questions
60
votes
12 answers

Rounded Corners on UIImage

I'm trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I've got code that generally work, but it occasionally crashes inside of the UIImage drawing routines with an EXEC_BAD_ACCESS -…
Jablair
  • 5,036
  • 4
  • 28
  • 37
58
votes
8 answers

Command line batch image cropping tool

is there any lightweight command line batch image cropping tool(Linux or Windows) which can handle a variety of the formats ?
iceman
  • 4,211
  • 13
  • 65
  • 92
57
votes
7 answers

Bmp to jpg/png in C#

Is there any way to convert a bmp image to jpg/png without losing the quality in C#? Using Image class we can convert bmp to jpg but the quality of output image is very poor. Can we gain the quality level as good as an image converted to jpg using…
Ramesh Soni
  • 15,867
  • 28
  • 93
  • 113
54
votes
2 answers

Imagemagick - Resize images to 25px height and aspect ratio

OK, so I have a folder of like 16 images all between the dimensions of 205x150 to 103x148. I want to size them down to the pixel height and width of 25px and stack them horizontally on a transparent background... is that possible? I should probably…
test
  • 17,706
  • 64
  • 171
  • 244
53
votes
4 answers

Merge Image using Javascript

Is it possible to merge pictures using javascript? For example, if you have 2 rectangle .jpg or .png images files of the same size, is it possible that you can align it side by side and produce a merged copy of the two in a new .jpg or .png image…
footprint.
  • 539
  • 1
  • 4
  • 4
50
votes
13 answers

Javascript Image Resize

Does anyone know how to resize images proportionally using JavaScript? I have tried to modify the DOM by adding attributes height and width on the fly, but seems did not work on IE6.
Komang
  • 5,004
  • 4
  • 29
  • 33
48
votes
12 answers

Reducing the file size of a very large images, without changing the image dimensions

Consider an application handling uploading of potentially very large PNG files. All uploaded files must be stored to disk for later retrieval. However, the PNG files can be up to 30 MB in size, but disk storage limitations gives a maximum per file…
knorv
  • 49,059
  • 74
  • 210
  • 294
48
votes
5 answers

How to manipulate images at the pixel level in C#

How do I manipulate images at the pixel level in C#? I need to be able to read/modify each bitmap pixel RGB values separately. A code sample would be appreciated.
Kamil Zadora
  • 2,367
  • 6
  • 34
  • 43
42
votes
5 answers

How to convert XCF to PNG using GIMP from the command-line?

As part of my build process I need to convert a number of XCF (GIMP's native format) images into PNG format. I'm sure this should be possible using GIMP's batch mode, but I have forgotten all of the script-fu I used to know. My input images have…
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
41
votes
5 answers

How to stretch images with no antialiasing

So I ran across this recently: http://www.nicalis.com/ And I was curious: Is there a way to do this sort of thing with smaller images? I mean, it's pixel art, and rather than using an image with each pixel quadrupled in size couldn't we stretch them…
Timothy Miller
  • 2,391
  • 1
  • 27
  • 34
41
votes
1 answer

Resize an image with Paperclip

The Paperclip plugin for Rails has a resize option that keeps the image in proportion. According to Ryan Bates' Paperclip Railscast, to make sure that option is on, you have to add a greater-than sign in the end of the size for the style you're…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
41
votes
9 answers

Resize Image to fit in bounding box

An easy problem, but for some reason I just can't figure this out today. I need to resize an image to the maximum possible size that will fit in a bounding box while maintaining the aspect ratio. Basicly I'm looking for the code to fill in this…
Eric Petroelje
  • 59,820
  • 9
  • 127
  • 177
41
votes
3 answers

Create a BufferedImage from file and make it TYPE_INT_ARGB

I have a PNG file with transparency that is loaded and stored in a BufferedImage. I need this BufferedImage to be of TYPE_INT_ARGB. However, when I use getType() the returned value is 0 (TYPE_CUSTOM) instead of 2 (TYPE_INT_ARGB). This is how I load…
user1319734
  • 427
  • 1
  • 4
  • 7
37
votes
5 answers

Tint image using CSS without overlay

Is it possible to tint an image with a specific color using CSS without an overlay in a WebKit browser? Failed attempts Managed to tint the image sepia or an arbitrary color using hue-rotate but couldn't find a way to tint it with a specific…
hpique
  • 119,096
  • 131
  • 338
  • 476
36
votes
5 answers

Merge two images to create a single image in C#.Net

I have a requirement wherein I need to merge two different png/jpeg images resulting into a single image using C#.Net. There will be a particular location defined on the source image wherein I need to insert another image. Can anybody suggest some…
Anil C
  • 1,045
  • 3
  • 16
  • 38