jpeg

Rotating JPEGs in .NET with minimal loss of quality

I am attempting to support rotating JPEG images from ASP.NET MVC (in 90 degree increments). I am attempting to use System.Drawing (GDI+), however I am running into issues. I tried using Image.RotateFlip which is able to rotate the image but causes a loss of quality. Even with an encoder quality of 100, there are still visible artifacts ...

Reading JCS_YCCK images using ImageIO

I'm using ImageIO.read to process uploaded image files. The code is similar to BufferedImage bufferedImage = ImageIO.read(new ByteArrayInputStream(image.getContents())); I've managed to solve most of the issues, but this one has left me clueless. The uploaded image has a JCS_YCCK profile, as defined in com.sun.imageio.plugins.jpeg.JPE...

JTIP file format reader for python

I have to work with some image files. They are named as .png and .jpg, but I tried 3 different image viewers, and none of them could open the files. I found out that the first 8 bytes of these files were CF10rUrm, and DROID told me it was a JTIP (JPEG Tiled Image Pyramid). I need to use these from Python. Does anybody know of any way to...

JPEG Shows in Firefox but Not IE8

Hi, I'm working on a Sidebar Gadget and cannot get my JPEGs to show up (PNGs work). When I try to open the file by itself in IE8 it doesn't work. Firefox, of course, can open it fine. JPEG Details: Dimensions: 1080X900 180 dpi Bit depth 24 Color representation: uncalibrated I've found some things talking about the images being compr...

How can you hide information inside a jpg or gif photo?

How can I write some information inside a photo file like jpg or gif without destroying the image? and of course without showing it on the photo since the whole idea is to send information in the file of photo undetected by anyone (to provide security/privacy to some extent)! ...

java pgm 2 jpeg/png

I have an int array containing gray scale values from 0-254, i also have the x and y size of the image. It is an easy thing to create an pgm image, but i want to display it in a jsp, so i need somehow to convert it to a jpeg or png image. If you suggest jai, than please tell me at which classes to look, or how to actually do it in jai. ...

Efficient way to fingerprint an image (jpg, png, etc)?

Is there an efficient way to get a fingerprint of an image for duplicate detection? That is, given an image file, say a jpg or png, I'd like to be able to quickly calculate a value that identifies the image content and is fairly resilient to other aspects of the image (eg. the image metadata) changing. If it deals with resizing that's ...

What are the best JPEG compression tools?

When making a webpage every byte counts. Especially if the webpage is heavy on graphics, has large backgrounds, etc. For that reason I want to find a good tool to compress my huge background files into as small JPEG files as possible, while still maintaining an acceptable quality. I know that a lot of things depend on the compression a...

Why Java ImageIO flattens JPEG colors

When I read certain JPG files, colors are flattened. Here is a simple example that reads a jpg and just writes the same image to another file. import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class JPegReadTest { public static void main(String[] args) { if (args.length == 2) { ...

j2me - How to create image in jpg format?

My j2me application must take a photo, edit it a little and save it somewhere (or send to server). Camera return me bytes of an image in jpg format, but after I create an Image object from it (using Image.createImage()), I could not pack it back to jpg. Is there any jpeg encoders for j2me? I found one written in j2se, but it uses j2se-...

How to set threshold when converting JPEG to non-dithered bitmap?

I'm using my digital camera as a quick and dirty scanner. Resolution is actually around 300dpi, which is quite reasonable. But my camera produces a color image, which I want reduced to a bitmap. I do not want to dither the image; I'm looking for what I would get if I put the document through a black-and-white scanner. Converting a JP...

Is there any sample code to read thumbnail from Jpeg exif header?

I am writing application using c++, in windows. I want to get a thumbnail from jpeg, without decoding the whole image. How Can I read thumbnail from jpeg exif header? Can any one offer me a some sample code? Many thanks! ...

Django ImageField validation & PIL

Hello On sunday, I had problems with python modules, when I installed stackless python. Now I have compiled and installed : setuptools & python-mysqldb and i got my django project up and running again. (i also reinstalled django-1.1), Then I compiled and installed, jpeg, freetype2 and PIL. I also started using mod_wsgi instead of ...

Having an image file buffer in memory, what is the fastest way to create its thumbnail?

Trying to create a an image acquiring application optimized for a fast scanner (which can provide up to 6 compressed images [color+gray+binary][front+rear] for each paper at speed of 150 ppm) I have some speed issues. Using TWAIN technology and memory buffer transfer mode (TWSX_MEMORY) I receive image buffer (as JPEG or TIFF file loade...

Image draw issue on Linux using Xlib

I am developing an application, in which I am receiving images from my window host.. the client side is in Linux using C++.. I am sending JPEG format from server side.. the problem I am facing is that when I receive the image on client, I use "XCreateImage" function to create the "XImage" and when I write this image to a file, it appears...

Why would a JPG display in Firefox, but not IE?

This is the weirdest thing I've ever seen... Any ideas? This is driving me insane. If it helps, this is an image that's been uploaded by a client using a form then moved using PHP and renamed. ...

How to read embed thumbnail from jpeg images?

I am writing a thumbnail viewer in c++. I first make use of EXIF information to retrive an image's thumbnail, but the thumbnail in the EXIF is bad, with black bands. So I want to get the jpeg's embedded thumbnail, how can I do this? Another question: does jpeg's embeded thumbnail equal to EXIF thumbnial? ...

Does jpeg's embeded thumbnail equal to EXIF thumbnial?

Does jpeg's embeded thumbnail equal to EXIF thumbnial? How can I retrive jpeg's embeded thumbnail? Many thanks! ...

Display Progressive JPEG on IE

Is it possible to make IE start displaying Progressive JPEG before the image has been completely downloaded? ...

Bitmap Save in .Net is saving the image in an incorrect format??

We have a piece of code which saves a .Net System.Drawing.Bitmap to file. The Save call is specifying the file location as well as the ImageFormat which we are expecting to save the image data as a Jpeg so out code looks like this: public MediaFile IngestImage(System.Drawing.Bitmap imgSrc, string name){ ... // left out because it ...