Questions tagged [image-formats]

Image file formats are standardized means of organizing and storing digital images. Image files are composed of digital data in one of these formats that can be rasterized for use on a computer display or printer.

Wiki

An image format is a file format used to describe a digital image. Image files are composed of digital data in one of these formats that can be rasterized for use on a computer display or printer.

Comression Technologies:

Lossless compression algorithms reduce file size while preserving a perfect copy of the original uncompressed image. Lossless compression generally results in larger files than lossy compression.

Lossy compression algorithms preserve a representation of the original uncompressed image that may appear to be a perfect copy and is able to achieve smaller file sizes than lossless compression.

Image formats

Some popular image formats are

  • png
  • jpg
  • bmp
  • tiff
  • gif
  • webp
  • exif

Tag usage

Example usage of tag includes conversions from one image format to another, issues regarding particular image formats, and questions about tools dealing with image processing based on the image formats used.

Read more

163 questions
288
votes
6 answers

JPG vs. JPEG image formats

I often use JPEG images, and I have noticed that there are two very similar file extensions: .jpg, which my mobile's camera and the Preview application use, and .jpeg, with which Image Capture saves the images from scanning with my Canon MX455…
MickG
  • 3,216
  • 2
  • 14
  • 22
84
votes
6 answers

How can I know what image format I get from a stream?

I get a byte stream from some web service. This byte stream contains the binary data of an image and I'm using the method in C# below to convert it to an Image instance. I need to know what kind of image I've got. Is it a simple bitmap (*.bmp) or a…
Yanshof
  • 9,659
  • 21
  • 95
  • 195
71
votes
1 answer

How to get the format of image with PIL?

After loading an image file with PIL.Image, how can I determine whether the image file is a PNG/JPG/BMP/GIF? I understand very little about these file formats, can PIL get the format metadata from the file header? Or does it need to 'analyze' the…
NeoWang
  • 17,361
  • 24
  • 78
  • 126
64
votes
8 answers

Detecting image type from base64 string in PHP

Is it possible to find out the type of an image encoded as a base64 String in PHP? I have no method of accessing the original image file, just the encoded string. From what I've seen, imagecreatefromstring() can create an image resource from a…
Epicurus
  • 2,103
  • 7
  • 29
  • 39
51
votes
3 answers

Which graphic file formats are supported by browsers?

JPEG, GIF and PNG can be displayed with the img tag and will work in all browsers, the object element can be use for displaying images specifying its MIME type, but what other graphic formats are supported by img or object tag in most browsers…
Flupkear
  • 2,135
  • 7
  • 29
  • 32
48
votes
5 answers

Website Image Formats: Choosing the right format for the right task

When designing a website, what do you consider the best image format to use for a particular task? I always find myself in a dilemma when trying to figure out what format to use for a specific task...like for example, should I use .jpg all round? …
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
30
votes
5 answers

Programmatically adding Images to RTF Document

I am trying to add a image to a RTF document which I am creating. I would prefer to not use 'copy/paste' methods (that involve pasting the image within a RichTextBox and then accessing the .RTF property) which purge the clipboard (as this will be a…
DerX
23
votes
3 answers

Getting enum names (e.g. CV_32FC1) of OpenCV image types?

In the C++ interface to OpenCV, it seems easy enough to check the type of an image. If you have an image cv::Mat img = cv::imread("someImage.xyz"), you just do int theType = img.type(). However, as you would expect, calling img.type() just gives an…
solvingPuzzles
  • 8,541
  • 16
  • 69
  • 112
19
votes
4 answers

What image formats do the major browsers support? (2012)

I was wondering what image formats (aside from the basic JPEG, GIF, PNG) the major browsers would support, especially Chrome, Firefox, and Webkit. If anyone can provide a link to a list somewhere (that is updated frequently to cope with the frequent…
Wegko
  • 369
  • 1
  • 2
  • 9
15
votes
1 answer

Image formats NV12 storage in memory

I am totally understand about the size of the NV12 format as described in question NV12 format and UV plane Now I am reading from two sources about the storage of UV plane in this format: one is…
Manish Kumar
  • 1,419
  • 3
  • 17
  • 36
14
votes
1 answer

Preferred Vector Image format for use in WPF?

As per the title, what's the preferred image format (or formats) for use in WPF? My company will hire a designer to design some logos, images, toolbar icons, etc. for use in a WPF application. I was going to ask for Vector Graphics as they are…
joedotnot
  • 4,810
  • 8
  • 59
  • 91
13
votes
6 answers

WebP image format on iOS

I’m currently researching the possibility to use Google’s WebP image format in our iOS software. I found it’s not hard to decode the WebP into RGBA8888 as needed using the Google’s C-library. However, I’d like to create an implementation comparable…
Soonts
  • 20,079
  • 9
  • 57
  • 130
13
votes
1 answer

Which Image Formats does JavaFX Support?

I am looking for a list of Image Types (latest) JavaFX supports, e.g. PNG, JPEG, TIFF. Different search engines did not help ... any idea where to start? More particulary I am interested in 16 Bit grayscale images (in different formats) and the rare…
MrFreeze
  • 185
  • 2
  • 8
9
votes
2 answers

How to get the format(ex:jpen,png,gif) of image file (BufferedImage) in java

i want to get the buffered image format or type of image using java, InputStream stream = request.getResponseStream(); BufferedImage image= ImageIO.read(stream); LOGGER.info(image);
VICKY-TSC
  • 405
  • 2
  • 5
  • 19
8
votes
3 answers

How to create empty (0x0) image?

I'm trying to figure out a way to create a zero-width, zero-height image which would conform to the standard of whichever format works. I've already tried the Windows Bitmap (BMP) format (54-byte header only file), but it appears that image readers…
palswim
  • 11,856
  • 6
  • 53
  • 77
1
2 3
10 11