jpeg

What is the best way to encrypt a lot of large images?

I need to encrypt a lot of large JPEG files. The pictures are very sensitive and need to only be decrypted inside my application. Because of the number and size of the images, speed is an issue. ...

Black background while copying image from Firefox

An image is copied from Firefox into the Clipboard. My program gets it from clipboard and saves as a JPEG image. For some reason the image is saved with a black background. If I open the same URL in IE and copy the image into the Clipboard, the image is saved correctly by my program. I am using Delphi 7. I also tried to copy the image f...

How can I compress jpeg images in Java without losing any metadata in that image?

I want compress jpeg files using Java. I do it like this: Read the image as BufferedImage Write the image to another file with compression rate. OK, that seems easy, but I find the ICC color profile and the EXIF information are gone in the new file and the DPI of the image is dropped from 240 to 72. It looks different from the origi...

How to make jpeg compression with lowest CPU usage?

Hello, I need to convert raw image data to jpeg. But I don't need anything special in terms of best quality, or minumum size etc. Only thing I need is minumum CPU usage. I am new to jpeg compression. Can you please advice about which parameters will have the lowest CPU usage while converting jpeg? I would like to use IPP(intel perform...

Java API to convert JPEG to TIFF

I am looking at java APIs to convert JPEG file streams to TIFF files. I looked at the JAI but did not find something similar to what i am looking at. Can someone point me to a good API which does this ? ...

Tools for JPEG optimization?

Do you know of any tools (preferrably command-line) to automatically and losslessly optimize JPEGs that I could integrate into our build environment? For PNGs I'm currently using PNGOUT, and it generally saves around 40% bandwidth/image size. At the very least, I would like a tool that can strip metadata from the JPGs - I noticed a stra...

How can I take a screenshot and save it as JPEG on Windows?

I'm trying to find a (somewhat) easy way to take a screenshot on window and save the resulting HBITMAP as a JPEG. The tricky part here is that since the code is in C I can't use GDI+ and since the code is a module for a bigger program I can't neither use an external lib (like libjpeg). This code takes a screenshot and returns a HBITMAP....

"A generic error occurred in GDI+" when saving Bitmap object as jpeg, c#

I have an array of ushort pixel data (16-bit grayscale values), and I am trying to save it as a jpeg image. However my code is crashing at the Save command with "A generic error occurred in GDI+". I can't figure out how to fix this. The directory I am saving to is created by my application and I write other files to it; so I know it's no...

Extracting data from jpeg files

Hi, I want to extract some kind of bmp/rgb data from jpeg files. I had a look at libjpeg, but there seemed not to be any good documentation available. So my questions are: Where is documentation on libjpeg? Can you suggest other c-based jpeg-decompression libraries? thanks in regard ps: I am using GNU/Linux, and c/c++ ...

.NET C# library for lossless Exif rewriting?

I have found various code and libraries for editing Exif. But they are only lossless when the image width and height is multiple of 16. I am looking for a library (or even a way to do it myself) to edit just the Exif portion in a JPEG file (or add Exif data if it doesn't exist yet), leaving the other data unmodified. Isn't that possibl...

Reading in a JPEG image in java

I want to read in a jpeg image with a uniform gray background with several colored balls on it of the same size. I want a program which can take this image and record the coordinates of each ball. whats the best way to do this? ...

C# : How to save a picturebox control as a jpeg file after it's edited

Hi I have a picture box on my windows forms. I load a picture in it and I have enabled Paint Event on my code.It draws a rectangle. Like this; private void pictureBox1_Paint(object sender, PaintEventArgs e) { Graphics gr = e.Graphics; Pen p = new Pen(Color.Red); p.Width = 5.0f; gr.DrawRectangle(p, 1...

How do you create a thumbnail image out of a JPEG in Java?

Can someone please help with some code for creating a thumbnail for a JPEG in Java. I'm new at this, so a step by step explanation would be appreciated. ...

.NET Saving jpeg with the same quality as it was loaded

Hello I have a cannon digital camera and I set it to take pictures with superfine quality and it outputs a .jpg file 3 mega in size. If I load it like this in ASP.NET(this is useful to change it's dpi resolution or crop it or whaterver) imgPicture = Image.FromFile(Config.WorkDirectory + this.TempPhotoName); bmpPicture = new Bitmap(img...

Copy EXIF Metadata from TIF to JPEG in C# / VB.NET

Hello! I would really appreciate if you could shed light on this problem. I have 2 images, one was created from TIF file with metadata, the other is an in-memory image that will be saved as jpeg. Then I use this routine to transfer exif metadata from first image to the second one (that is from the one created from tif file to the in-memo...

If I take a loss-compressed file and save it again (e.g. JPEG) will there be loss of quality?

I've often wondered, if I load a compressed image file, edit it and the save it again, will it loose some quality? What if I use the same quality grade when saving, will the algorithms somehow detect that the file has already be compressed as a JPEG and therefore there is no point trying to compress the displayed representation again? W...

Get the size of jpeg from memory (converted using GDI++)

Hello, This is my first post here. I have a problem. I need to take a sceenshot of the desktop, convert it to jpeg, store it in a buffer and then manipulate it and send it over the internet. I have written the code for doing this with GetDC....and GDI+ for converting the HBITMAP to jpeg. The problem I am having now is that I don't know...

Need help on BMP to JPEG conversion

I'm writing a C++ program to convert a BMP image into a JPEG. Here's the basic algorithm I'm trying to follow: Convert RGB color space to Y,Cb,Cr.. Down sample Cb and Cr by 2 (that means for each square block of 2*2 there is 4 different Y value but 1 Cb and 1 Cr value Apply DCT to data units of each 8*8 pixels... Then apply quantizati...

Dimension Preserving JPEG to EPS Conversion

I am looking for the best way to convert my JPEG files into EPS. I have to convert my image files to EPS to insert into my LaTeX files. Note that I am using dvipdfm to compile my LaTeX file into PDF and I am not using pdflatex. The problem is that the actual size of the image changes under the conversion to EPS. Therefore, I have to use...

Converting Source ASCII Files to JPEGs

I publish technical books, in print, PDF, and Kindle/MOBI, with EPUB on the way. The Kindle does not support monospace fonts, which are kinda useful for source code listings. The only way to do monospace fonts is to convert the text (Java source, HTML, XML, etc.) into JPEG images. More specifically, due to pagination issues, a given inp...