jpeg

Converting a PDF to a series of images with Python

I'm attempting to use Python to convert a multi-page PDF into a series of JPEGs. I can split the PDF up into individual pages easily enough with available tools, but I haven't been able to find anything that can covert PDFs to images. PIL does not work, as it can't read PDFs. The two options I've found are using either GhostScript or Im...

Image transcoding (JPEG to PNG) with Java

Hi In my Java application I would like to download a JPEG, transfer it to a PNG and do something with the resulting bytes. I am almost certain I remember a library to do this exists, I cannot remember its name. Can anyone help me? Thanks! ...

C# .NET Convert a JPEG Image into a Bitmap structure

Hello everyone, I have a JPEG "image" (actually a BLOB in a database) which I want to import/convert into a "Bitmap" structure in memory. The reason is that I use a third party library which is unable to work with JPEG images and I need to pass an uncompressed bitmap (as a pointer). All I found so far are ways to convert between differe...

JPEG support with ijg - getting access violation

Hi all, I was recently trying to update my game to store graphics in compressed formats (JPEG and PNG). Whilst I ended up settling on a different library, my initial attempt was to incorporate ijg to do JPEG decompression. However, I was unable to get even the simplest console application to work and am wondering if anyone might be abl...

How to create metadata for jpeg images in xp.

I have an archive of Dilbert cartoons, and would like to organize them in a way, that I can find the one I need based on something on the order of a keyword search. I am looking for suggestions on a reasonable way to accomplish that programatically. I am leaning towards perl for an implemenation. ...

How can I save an image as a PNG or JPG file with a given output file size? (pref. in C#)

I'd like to save an existing image as a PNG or JPG at a given file size, eg, 100KB. ...

How to detect if a jpeg contains cmyk color profile?

I have some code that scales the images users upload. It works perfectly in most situations, but sometimes they upload jpegs that contain cmyk information. After googling a bit, it seems like jpegs with cmyk values isn't valid, but since they work in windows, the users assume it's a problem with my application, so I need to be able to ...

What is the best way to geotag jpeg-images with python?

I have coordinates from some source and want to tag my jpg files with them. What is the best python library for writing geotags into exif data? ...

Converting transparent gif / png to jpeg using java

I'd like to convert gif images to jpeg using Java. It works great for most images, but I have a simple transparent gif image: [In case the image is missing: it's a blue circle with transparent pixels around it] When I convert this image using the following code: File file = new File("indexed_test.gif"); BufferedImage image = ImageIO...

Is there a way to quickly resize a jpeg to 1/8 of its original size in .NET?

And hopefully with as little loss as possible, as I've heard the implementation put forward by a guy named Guido Vollbeding. Standard GDI+ doesn't seem to have this capability, and all I've found so far are either specs or fully-integrated tools. A lean, pluggable .NET component would be highly desirable. What are common pitfalls if it c...

Jpeglib code gives garbled output, even the bundled example code?

Hey all, I'm on Ubuntu Intrepid and I'm using jpeglib62 6b-14. I was working on some code, which only gave a black screen with some garbled output at the top when I tried to run it. After a few hours of debugging I got it down to pretty much the JPEG base, so I took the example code, wrote a little piece of code around it and the output...

Non-working alpha in Flash Player 6 [Given Up On]

I've got a flash project that due to requirements has to be backward compatible with flash 6. Everything works, except the first 6 (of 17) jpeg images that are loaded by <MovieClip>.loadMovie don't respond to changes to their alpha setting. If I rearrange the order of the images in the XML file that is used to provide the image urls to ...

Python Imaging Library and JPEGs on MacOsX

I've gotten a hold of Python Imaging Library (PIL) and installed the PNG support stuff just fine. I am however having issues with theJPEG Library. The default setting for it is nothing but they suggest "/home/libraries/jpeg-6b". On the Mac that directory doesn't exist, the library is however installed fine, here's the output of the inst...

Can a JPEG compressed image be rotated without a loss in quality?

JPEG is a lossy compression scheme, so decompression-manipulation-recompression normally reduces the image quality further for each step. Is it possible to rotate a JPEG image without incurring further loss? From what little I know of the JPEG algorithm, it naively seems possible to avoid further loss with a bit of effort. Which common i...

How can i get a BitmapData object out of a File object from a local jpeg file in AIR?

So I am trying to create an image gallery. My AIR application accepts files that are dragged and dropped onto a TileList component. I am using the images as icons but the problem is that they take a long time to load so i want to compress the file data first (I have that part done) The problem is that I can't figure out how to open the f...

What's the best library for manipulating JPEG metadata?

I'm after a library that can read and write JPEG image metadata. For example if I wanted to embed and read back a short description or story relating to the jpeg image, in the image file itself, what development library/s would you recommend? I'm not too fussed about what language (it's a new project), though I've tagged this question f...

jpeg to pdf java library

Do you know of any jpeg to pdf, open source if possible, library for Java? ...

How to create a stream of jpegs(live) in c++ or c# or java? RTSP?

I am building a server sided html rendering browser that renders html and sends jpegs to the mobile client. I need to figure out how to build a server that grabs jpegs and streams them in a session to a client that i am going to write in j2me ...

How to join 2 jpegs together losslessly without decoding using a hex editor?

Hi, I am trying to write a program (prob in java) to join a number of jpegs together losslessly without decoding them first. I thought I'd start simple and try and append 2 jpegs of the same size compressed with the same settings one above the other using a hex editor. First I extract the image data of jpeg B and append it to jpeg A. B...

How best to search binary data for variable length bit strings?

Can anyone tell me the best way to decode binary data with variable length bit strings in java? For example: The binary data is 10101000 11100010 01100001 01010111 01110001 01010110 I might need to find the first match of any of the following 01, 100, 110, 1110, 1010... In this case the match would be 1010. I then need to...