jpeg

How to create Huffman tree from FFC4 (DHT) header in jpeg file?

I thought I could work this one out myself but I don't seem to be moving forward at all. Ok, the background: I need to create a Huffman tree of codes from the information provided by the FFC4, DHT (Define Huffman Table) header in a jpg file. The DHT header defines the Huffman table in this way: 1) A series of 16 bytes. Each byte defin...

Building Python PIL for JPEG looks okay, but fails the selftest

I'm on Fedora Core 6 (64 bit) after "yum install libjpeg-devel" I have downloaded and built PIL. It gives the message: --- JPEG support ok Looks like JPEG built okay, but when running selftest.py: IOError: decoder jpeg not available Why would it appear to have built correctly, but fail the selftest? ...

An easy way (tool?) to compare images pixel for pixel in different formats?

Well I've written a basic lossless jpeg joiner thing in java now but I'd like to compare the files it produces with the original files. I can only compare so much in a hex editor, does anyone know of an easy way, software or java based (preferably software as I dont feel like any more coding for now!) that I can compare two images and p...

How do I read JPEG and PNG pixels in C++ on Linux?

I'm doing some image processing, and I'd like to individually read each pixel value in a JPEG and PNG images. In my deployment scenario, it would be awkward for me to use a 3rd party library (as I have restricted access on the target computer), but I'm assuming that there's no standard C or C++ library for reading JPEG/PNG... So, if yo...

Lossless JPEG Rotate (90/180/270 degrees) in Java?

Is there a Java library for rotating JPEG files (90/180/270 degrees) without quality degraded? ...

JPEG Quality when creating a JPEG in Carbon

I'm writing a Carbon application and we are creating JPEG files. I'm currently doing this by using Quartz CGImageDestinations and kCGImagePropertyJFIFDictionary. However, JFIF doesn't seem to have any entry for compression quality. Does anyone know how to set this? thanks ...

Slow PDF upload for Confluence

We run a site that we host that uses the Atlassian Confluence. The site works great and is being used now. But there is one thing. It seems like when pdf and gifs are uploaded the upload speed will be slower. But the smaller files will upload fine. Has anyone else having an issue with uploading pdf's into confluence? I am trying to...

How to disable subsampling with .NET / GDI+ ?

I am trying to save a JPEG image using the Bitmap class. I noticed that sharp edges were always blury regardless of the quality level that I specify. I figured out that it is due to subsampling of one or more of the channels. How do I disable subsampling when saving the image? I am currently using this code: EncoderParameters parameter...

Looking for trustworthy JPEG batch converter/resizer

I have a batch of PNG files that I need to convert to JPEG. I'm looking for a free trustworthy utility that will give me the most optimal possible JPEGs. I've found some paid utilities and i HAVE Photoshop, but I want something dedicated that is made for the task and I dont want to accidentally download spy ware. I'm really surprised n...

C# How can I test a file is a jpeg?

Using C# how can I test a file is a jpeg? Should I check for a .jpg extension? Thanks ...

Can't stream Jpegs images over http in C#

Hello Guys, I 've a stream of Jpegs images and I'm trying to stream them with HTTP to VLC The code if the following: public HttpListenerResponse StartListening(String where) { listener = new HttpListener(); listener.Start(); Console.WriteLine("listening on " + where); listener.Prefixes.Add(where); ...

OpenCV cvSaveImage Jpeg Compression Factor

I am using OpenCV and saving as a jpeg using the cvSaveImage function, but I am unable to find the jpeg compression factor used by this. What's cvSaveImage(...)'s Jpeg Compression factor How can I pass the compression factor when using cvSaveImage(...) ...

JPEG loading on Windows Mobile

I'm looking for a faster way to load JPEG (or PNG?) into a .NET Bitmap on Windows Mobile... I've just had a go at loading JPEG, PNG and GIF: for (int i = 0; i < files.Length; i++) { int tries = 10; while (--tries > 0) { int size = (int)new FileInfo(files[i]).Length; FileStream fs = new FileStream(files[i], F...

Change the resolution of a jpeg image using C#

I need to modify the vertical and horizontal resolutions without changing the image dimensions. ...

Converting JPEG colorspace (Adobe RGB to sRGB) on Linux

I am 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 have been asked if the thumbnail and medium size images can use sRGB as the images as is appear "flat" in some browsers. I'm currently us...

Export animation sequence from Flash as JPEGs

I'm wondering if it's possible at all to sort of record/capture the state of an swf movie over a period of time and save it all down as jpgs to the server? AS3 has the new com.adobe.images.JPGEncoder class that seems to do the job, but can I capture a sequence? The hope would be that I could put it back together as a video or animation...

Fast JPEG encoding library

Hi, anyone know of a free open-source jpeg encoding library for C/C++? Currently I'm using ImageMagick, which is easy to use, but it's pretty slow. I compared it to an evaluation of Intel Performance Primitives and the speed of IPP is insane. Unfortunately it also costs 200$, and I don't need 99% of the IPP). Also it will only work f...

Error reading IPTC fields from JPEGs in .NET

I get the following exception when calling BitmapMetadata.GetQuery("/app13/irb/8bimiptc/iptc") on about 1% of JPEGs I have tried this on. What could be causing this and what can I do to fix it? (I have tried Googling but I can only find one relevant result asking the same question but with no answer.) System.OverflowException: The image...

Enabling JPEG support for QImage in py2exe-compiled Python scripts?

Hello, I'm trying to use a JPEG image in a QImage object from a Python script, with PyQt4. The script itself works perfectly, the image loads and can be manipulated and rendered and all. However, when I try to "compile" (compyle?) this script with py2exe, everything works but the JPEG image. Replacing it with a PNG equivalent works, but...

Exiv2 in 64-bit (or another EXIF writer)

I need a non-destructive way of adding EXIF tags to jpeg images from .NET code. So far I have found Exiv2 and the .NET wrapper Exiv2net that works well when adding or updating tags. However, my code needs to run on a 64-bit machine (and compiled for 64-bit due to other reasons) and it seems to me that the Exiv2 code only compiles in 32-b...