I need to generate thumbnail and medium sized images from large photos.
These smaller photos are for display in an online gallery. Many of the photographers are submitting JPEG images using Adobe RGB.
I would like to use sRGB for all thumbnails and medium size images
I am using dotnet (asp.net) and need a way to convert from Adobe RGB to sRGB…
Starting with ImageMagick 6, the command style changed to solve a bunch of problems outlined in the Basic Usage document. That document does imply that for simple operations, one should only need to move the options from before the source file to between the source and output files to convert from the "old" style to the "new" style.
However,…
Does anyone know how to create a texture with a YUV colorspace so that we can get hardware based YUV to RGB colorspace conversion without having to use a fragment shader? I'm using an NVidia 9400 and I don't see an obvious GL extension that seems to do the trick. I've found examples how to use a fragment shader, but the project I'm working…
Hi there,
I am working on a project, which I need a special body-background for. The background-color should cycle through the color spectrum like a mood light. So I found this:
http://buildinternet.com/2009/09/its-a-rainbow-color-changing-text-and-backgrounds/
"But" this snippet is working with the RGB colorspace which has some very light…
I know its possible to convert an image to CS_GRAY using
public static BufferedImage getGrayBufferedImage(BufferedImage image) {
BufferedImageOp op = new ColorConvertOp(ColorSpace
.getInstance(ColorSpace.CS_GRAY), null);
BufferedImage sourceImgGray = op.filter(image, null);
return sourceImgGray;
}
however, this is a chokepoint of…
First, I would like to say I'm not an image processing specialist.
I would like to convert image colorspace from one to another, and change icc color profile at the same time. I managed to do it using JMagick (the ImageMagick Java port), but no way in pure Java (even using JAI).
I am trying to create a solution to automatically convert an Adobe RGB image to sRGB. The first step is to define whether the image is using Adobe RGB colorspace. How do I do that?
It is a C# console application (.NET 3.5).
Thank you for your help.
Hi everyone!
I need to translate colors in bitmap loaded to BufferedImage from RGB to YCbCr (luminance and 2 channels chrominance) and back after process.
I made it with functions used like rgb2ycbcr() in main method for each pixel, but it isn't so smart solution. I should use ColorSpace and ColorModel classes to get BufferedImage with…
I'm trying to make tiled pyramidal tiffs from master tiff images using Java (JAI 1.1.3 + imageIO).
The problem is: I NEED to make tiff files compressed in jpeg with RGB photometric interpretation and no matter what I try, the image still faces YCbCr photometric interpretation.
Note: if I change compression type (eg. LZW or Deflate) I…
I'm loading a Bitmap from a jpg file. If the image is not 24bit RGB, I'd like to convert it. The conversion should be fairly fast. The images I'm loading are up to huge (9000*9000 pixel with a compressed size of 40-50MB). How can this be done?
Btw: I don't want to use any external libraries if possible. But if you know of an open…
I plan to write a painting program based on linear combinations of xy plane points (0,1), (1,0 ) and (0,0). Such system works identically to RGB, except that the primaries are not within the gamut but at the corners of a triangle that encloses the entire gamut, therefore allowing for all colors to be reproduced. I have seen the…
Hi guys
I need to know how I can read an image which uses a separate ICC Color Profile.
The image consists of 26'099'520 Bytes which is the result of 2480 width* 3508 height * 3 components per pixel.
I tried it with the following code:
Image * image = new Image();
Blob * blob = new…
My app launches with a view controller and a simple view consisting of a button and a subview. When the user touches the button, the subview is populated with scrollviews that display the column headers, row headers, and cells of a spreadsheet. To draw the cells, I use CGBitmapContext…
I am trying to create a image sized 1X1 in CMYK color space.
as first step I am creating bitmapContext as
CGColorSpaceRef cmykcolorSpace = CGColorSpaceCreateDeviceCMYK();
CGContextRef currentcontext = CGBitmapContextCreate(NULL,
1,…
I have a PNG file in a UIImageView, and next to that I have an EAGLView which displays the continuation of that same image (long story) as a texture, carved from the same original PNG. The point is, that these images, which should match up flawlessly, actually have somewhat differing…
I've had a look at the ColorSpace class, and found the constant TYPE_HLS (which presumably is just HSL in a different order).
Can I use this constant to create a Color from hue, saturation, and luminosity?
If not, are there any Java classes for this, or do I need to write my own?
I plan to write a painting program based on linear combinations of xy plane points (0,1), (1,0) and (0,0). Such system works identically to RGB, except that the primaries are not within the gamut but at the corners of a triangle that encloses the entire gamut. I have seen…
Hi everyone,
I have managed to use the reflection sample app from apple to create a reflection from a UIImageView.
But the problem is that when I change the picture inside the UIImageView, the reflection from the previous displayed picture remains on the screen. The new…
I am implementing a matrix convolution blur on the iPhone. The following code converts the UIImage supplied as an argument of the blur function into a CGImageRef, and then stores the RGBA values in a standard C char array.
CGImageRef imageRef = imgRef.CGImage;
int…
When I load textures from images normally, they are upside down because of OpenGL's coordinate system. What would be the best way to flip them?
glScalef(1.0f, -1.0f, 1.0f);
vertically flipping the image files manually (in Photoshop)
flipping them programatically after…
Hi
I am doing image masking. First I was using C*GImageMaskCreate()* function for masking but now I am using your solution which you had posted for masking. My problem is it works fine on simulator but on device it is not transparent and it gives rectangle of mask…
Alright I am having a world of difficulty tracking down this memory leak. When running this script I do not see any memory leaking, but my objectalloc is climbing. Instruments points to CGBitmapContextCreateImage create_bitmap_data_provider malloc, this takes…