jpg

How can I get the depth of a jpg file?

Hi, I want to retrieve the bit depth for a jpeg file using Python. Using the Python Imaging Library: import Image data = Image.open('file.jpg') print data.depth However, this gives me a depth of 8 for an obviously 24-bit image. Am I doing something wrong? Is there some way to do it with pure Python code? Thanks in advance. Edit: It...

Free library for .NET JPG compression?

I am looking for a high-quality free JPG compression library with C# interface, as an alternative to the standard Image class of .NET. Any suggestions? ...

libexif example to add a small Xml document in the exif data

Any libexif user/developer that could point me in the right direction on what are the appropriate call for adding a small custom XML document in the exif meta data of a JPG image ? I have been googling around for a while and can't figure it out. I am open to any other opensource library that will let me do that as long as it is C based...

Wrong JPEG library - ruby on rails- OS X

I keep getting this error any time i call any page that has a call that uses RMagick, but i can't figure out what library i'm missing, or what i need to install to get rid of this error. Does anyone have debugging suggestions? Processing SimpleCaptchaController#simple_captcha (for 127.0.0.1 at 2010-01-14 14:24:24) [GET] Parameters...

Can I "draw"/create an image with a given text with powershell?

Hi, I just wondered if it would be possible to create a small, simple jpg, png, gif with a given Text in powershell: e.g: a small square, 250px × 61px, yellow background and black text on it: "Test" Can I do this with "System.Drawing.Image"? Thanks ...

How to hash only image data in a jpg file with dotnet?

I have a ~20000 jpg images, some of which are duplicates. Unfortunately, some files have been been tagged with EXIF metadata, so a simple file hash cannot identify the duplicated one. I am attempting to create a Powershell script to process these, but can find no way to extract only the bitmap data. The system.drawing.bitmap can only r...

Best way to create FLV stream from screenshots

Hi, I want to create a FLV stream generated from images taken from my directx application, to end up on a webpage. My current plan is (have been) to send screenshots as JPG:s from the dx app, to a client running on Linux. This client converts the JPG:s to a MJPEG stream. And ffmpeg converts the MJPEG stream to FLV - ending up in Flash P...

Problem wiht wrong file format (gif insted of jpg) when saving images from server - PHP

I am using this peace of PHP code to save and rename some images. foreach ($phones as &$value) { $link_img = $handle = @fopen($link_img, "r"); if ($handle) { while (!feof($handle)) { $buffer .= fgets($handle, 4096); } fclose($handle); $filename = "files/nokia_".$pho...

PHP: Converting png's and gif's into grayscale

Hello, im using the following script to convert jpgs into grayscale-images. http://bubble.ro/How_to_convert_an_image_to_grayscale_using_PHP.html i want to upgrade it to also convert pngs (with transparency) and gifs (with transparency) into grayscale images. At the moment it's not working. I'm querying the image-src for its file-extens...

PHP: grayscale jpgs, gifs, pngs... also with alpha channels?

Hey guys, $im = ImageCreateFromString(file_get_contents($source_file)); ImageFilter($im, IMG_FILTER_GRAYSCALE); any idea what i could do, to properly grayscale gifs and pngs with transperancy? This snippet actually works good, it transforms jpgs and pngs to grayscale. However gifs are a little bit "buggy" - they don't always work, it...

Android canvas to jpg

I draw 2d images on the canvas using the following tutorial. http://www.designerandroid.com/?cat=3 I want to save what ever dispalying in a canvas as a jpg image, how can i do it ?? Thanks in advance. ...

Grab VLC frames through HTTP protocol

Hello, Is there any way to access a movie plaing in VLC through HTTP in jpeg/png format. You see, what I want, is to have a movie playing in my local VLC player, and access currently playing frame through something like http://localhost:9999/current.jpg Is there sucha way, or maybe someother tool can provide it? Thanx a lot in advan...

Saving image as JPG -library?

I'd like to find a JPEG-writing library that can be statically linked (so there are no DLL dependencies). No JPEG-reading ability is required. Edit: I got LibGD working, but it had one problem described here: http://stackoverflow.com/questions/2307965/libgd-library-is-not-working-crash-when-saving-image ...

How do you read a jpg creation date in Flash using AS3

I'm loading thumbnails repeatedly in a sequential order. 01.jpg 02.jpg etc. I need to know if they're failing to be produced. The only way I can think of is to read the creation time of the jpg, so I can verify that it's been updated. Anyone know the best way to read creation time in jpg in as3? I didn't see that in the headers by pars...

How do I create a set of image files from a PowerPoint file file?

I'm creating a "slideshow room" web page. The user will upload a PowerPoint file that my server will use to generate a set of .jpg image files representing the slides to present in a custom "gallery viewer". I'm an experienced Python developer but I cannot find anything useful. How can I do that? ...

How to maintain color settings when converting eps to jpg in imagemagick

I need to convert thousands of EPS files to JPG, using ImageMagick. The conversion is almost working - What is different is the colors are more saturated in the converted JPG than in the original EPS when viewed in a browser. However when I view the source EPS and the converted JPG in Photoshop, the colors are identical. Here is the comm...

Java - how to combine mp3 with jpg/png/...

I need to develop a functionality similar to iTunes where when you right-click a song get artwork, the JPEG/PNG is "embedded" into the mp3 file. I also need to embed the other ID3 details as well, so a library that could help me with all would be great. I have no idea how this could be done, do you have any hints? ...

removing meta data from EPS files with ImageMagick

I have successfully converted eps files to jpg using ImageMagick but the image meta data remains in the converted jpg. I tried using -strip during the convert but the meta data persists. Has anyone solved this with ImageMagick or any other way? Thanks ...

RMagick returns nil reading JPEG

When I try to open a JPEG format file in Rails using RMagick, it always return nil with any jpg file. Other file formats open well. $ script/console Loading development environment (Rails 2.3.4) >> require 'RMagick' >> img = Image.read("1.gif").first => 1.gif GIF 230x100 230x100+0+0 PseudoClass 256c 8-bit 2kb >> img = Image.read("1.png"...

Imagemagick PDF to JPG conversion failing

I'm trying to convert the first page of a PDF to a JPG. I'm pretty sure I got this to work with certain PDFs, but is it really possible that certain PDFs are made incorrectly and cannot be converted? I tried running this first: $ convert 10-03-26.pdf[1] test.jpg And I got the follow: Error: /syntaxerror in readxref Operand stack: E...