jpg

IE6 - can't load a normal JPG

Try loading this normal .jpg file in Internet Explorer 6.0. I get an error saying the picture won't load. Try it in any other browser and it works fine. What's wrong? The .jpg file is just a normal picture sitting on the web server. I can even create a simple web page: <a href="http://www.zodiacwheels.com/images/wheels/blackout_thumb.jp...

Will random data appended to a JPG make it unusable?

So, to simplify my life I want to be able to append from 1 to 7 additional characters on the end of some jpg images my program is processing*. These are dummy padding (fillers, etc - probably all 0x00) just to make the file size a multiple of 8 bytes for block encryption. Having tried this out with a few programs, it appears they are f...

PNG Creation in PHP (is it different than gif and jpg?)

I have a image upload form that should take image types (PNG, JPEG, GIF), resize it and then save it to a path. For some reason I can't get the PNG file types to work, it works fine with JPEG/GIF and the file is copied so it looks like it's something to do with how I'm creating the PNG. Does PNG creation in PHP require different para...

JPEG built-in checksum / fingerprint?

I'm putting together a script to find remove duplicates in a large library of images. At the moment I'm doing a two pass filter of first finding files of the same size and then doing a sha256 on a 10240 byte piece of the file to get a fingerprint of the files with the same size (code here). It works well, but I'm guessing there are prob...

Imaging Question: How to determine image quality?

I'm looking for ways to determine the quality of a photography (jpg). The first thing that came into my mind was to compare the file-size to the amount of pixel stored within. Are there any other ways, for example to check the amount of noise in a jpg? Does anyone have a good reading link on this topic or any experience? By the way, the ...

C#: How to convert BITMAP byte array to JPEG format?

How can I convert a BITMAP in byte array format to JPEG format using .net 2.0? ...

Rails: A route to serve static assets (like .jpgs, etc?)

I've worked my way through a number of interesting routing problems - turning a request URL into a hash, etc., but just out of curiosity, is there a way to tell the routing system that you want anything that comes under a certain url subpath to be served literally - without going through a controller? For instance, if I have /home/me/...

Is it possible to use imagemagick as library reference from Adobe AIR?

I'm trying to load preview thumbnails of high resolution images and the application needs to be able to load 100 hi rez images at one time. The only way i know how to do this is if I use the Loader class and I have to load the ENTIRE file and then scale down the image and use the data as an image preview. what i'd like to do is use imag...

How can I send a ByteArray (from Flash) and some form data to php?

I have a sketch pad made in Flash AS3 like this one here: http://henryjones.us/articles/using-the-as3-jpeg-encoder I want to send the jpg to the server and some data from a html form field with php. Is there a way to force the Flash movie to deliver the image file when one presses the submit button? ...

Linux tool: convert

The system I'm using uses the linux utility convert to convert pdfs to jpgs. My box gives me the following error. >$ convert Badge-1114044091.pdf Badge-1114044091.jpg convert: Postscript delegate failed `Badge-1114044091.pdf'. convert: missing an image filename `Badge-1114044091.jpg'. But the production machine does not. According to ...

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...

doe anyone know of a free tool or how to convert an rtf to a jpg

I have an RTF file that I need to display to a user. I know that I need to convert it if I want to display it in the browser. I would like to be able to convert it to JPG so that I can take advantage of other code that I am using that uses ImageMagick to convert JPG to PDF. ImageMagick will convert a PDF to a JPG, but not an RTF :( I...

Scaling images/icons in Java

A project I am working on needs to be resized when the monitor resolution changes. Due to legacy code and other issues, we do it by using a custom library which scales all the components to the appropriate sizes when the resolution changes. However, when we scale some of the images/icons used in the project, they become blurry/fuzzy/ali...

Obfuscating images

I want to distribute a few images and not allow others to see them unless they are using my program. My intention will be to use JPG files in which I will alter the header so other image viewers cannot read them anymore. For example I can delete the bytes 7-10 which are the magic signature for JPG. Later, my program will reconstruct the ...

Why are .jpg's appearing yellow in my flash as3 application?

I retrieve .jpgs from my server and load them within my as3 app. I use Flash CS3, and am not using flex. Occasionally, some images will appear yellow and unreadable within the app. The actual original of the image is fine, and has no such yellowing, yet when I load the image in flash it appears yellow. This seems independent of size, cau...

jpg file transfer using a socket_stream in C

Hi everybody! I was wondering if sending a file with a jpg extension through a socket_stream, this automatically makes the transformation of bytes to jpg ? or need to implement some algorithm to transform the lot of bytes to image... Please could somebody explain me the way to do? ...

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. ...

Flash -> ByteArray -> AMFPHP -> Invalid Image !??

Hi, Im loading images into Flash and using JPGEncoder to encode the image to a ByteArray and send this to AMF PHP which writes out the bytearray to a file. This all appears to work correctly and I can download the resulting file in Photoshop CS4 absolutely fine. When i try to open it from the desktop or open it back in Flash it doesnt w...

Why is JPGEncoded bytearray sent from AS3 to AMFPHP resulting in an invalid image?

Hi, Im loading images into Flash and using JPGEncoder to encode the image to a ByteArray and send this to AMF PHP which writes out the bytearray to a file. This all appears to work correctly and I can download the resulting file in Photoshop CS4 absolutely fine. When i try to open it from the desktop or open it back in Flash it doesnt w...

Why the jpg file I converted from a gif file isn't crisp and clear ?

I use the following code to convert a gif file to a jpg file, it works but the result jpg file isn't the same quality as the original gif file, why ? Any way to improve the quality ? try { ImageIO.write(ImageIO.read(new File("C:/abc.gif")),"jpg",new File("C:/abc.jpg")); } catch (Exception e) { e.printStackTrace(); } So, to ask this ...