Which is better among JPG, PNG, and GIF? - General Questions and Answers

JPG (Joint Photographic Experts Group)
JPG was a filetype developed by the Joint Photographic Experts Group (JPEG) to be a standard for professional photographers. Like the method ZIP files use to find redundancies in files to compress data, JPGs compress image data by reducing sections of images to blocks of pixels or “tiles.” JPG compression has the unfortunate side effect of being permanent, however, as the technology for the file was created for storing large photographic image files in surprisingly small spaces, and not for photo editing.
GIF (Graphics Interchange Format)
GIF, like JPG, is an older filetype, and one generally associated with the internet as opposed to photography. GIF stands for “Graphics Interchange Format” and employs the same lossless LZW compression that TIFF images use. This technology was once controversial (for patent enforcement issues) but has become an accepted format since all patents have expired.
PNG (Portable Network Graphics)
PNG stands for Portable Network Graphics (or, depending on whom you ask, the recursive “PNG-Not-GIF”). It was developed as an open alternative to GIF, which used the proprietary LZW compression algorithm discussed earlier. PNG is an excellent filetype for internet graphics, as it supports transparency in browsers with an elegance that GIF does not possess. Notice how the transparent color changes and blends with the background. Right-click the image to see. This is actually one image that is on four different background colors.
Which to use?
From left to right, these files are: 24-bit JPG Compressed, 8-bit GIF, 8-bit PNG, Full Quality 24-bit JPG, and 24-bit PNG. Note that the file sizes increase in this same direction.
PNG is the largest image type for bigger images, often containing information you may or may not find useful, depending on your needs. 8-bit PNG is an option, but GIF is smaller. Neither are optimal options for photography, as JPG is much smaller than lossless PNG with only minimal loss of quality. And for storage of high resolution files, JPG compresses to tiny proportions, with quality loss only visible on close inspection.
In short:
PNG is good option for transparency and non-lossy, smaller files. Larger files, not so much, unless you demand non-lossy images.
GIF is largely a novelty and only useful for animation, but can produce small 8-bit images.
JPG is still the king for photographs and photo-like images on the internet, but be careful, as your file can degrade with every save.
*Press thanks if you find it useful*
ayushbpl10

Related

Photo RAW on Jiayu G3 (mtk6577) works.

Who are interested in shooting in raw on this phone? It is in the engineering menu. It works. I decoded the output file. Is a much higher quality than stock or other camera in jpeg. It's clean, unprocessed raw (15MBt)! There is a desire to get the application: to somehow pull (decompiled? Remake) of the module EngineerMode.apk shooting (test camera), add the raw decoder output file into something normal (tiff / png /? /). Decoder exists in the source code (java, but for the computer). Must somehow combine it to get a full application. I do not have enough knowledge of the language. And I can not understand decompile EngineerMode.apk. So I can not do it.
Here are four photos in the archive View attachment test.zip two in jpeg, reaped by the android, and other tiff (converted from raw, untreated, as-is). The only disadvantage we have to somehow adjust the white balance (often obtained images like this, with a greenish tint). What are the advantages: no artifacts jpeg (cubes), more dynamic range (shades easily into focus - see for yourself).
This applies not only to my phone Jiayu G3, but also to the entire platform MTK6577 (maybe more). I think this application will be very popular. Who made it?

What is the best quality

Hi, I write this question " What is the best quality" between the JPG & PNG file format.
Well..... I have app "Camera FV-5" and it's let you choose catching file as these formats....
When I shot an image as jpg its about 5MB in size, but the same scene about 16MB in png... Did that mean it's best in quality.?
I know It's (png) a loosless format.
Did the quality of it's worth its big size.?
I hope the professional in file format & an experience help [emoji3].
With thanks
Sent from my LG-D855
deutsh said:
Hi, I write this question " What is the best quality" between the JPG & PNG file format.
Well..... I have app "Camera FV-5" and it's let you choose catching file as these formats....
When I shot an image as jpg its about 5MB in size, but the same scene about 16MB in png... Did that mean it's best in quality.?
I know It's (png) a loosless format.
Did the quality of it's worth its big size.?
I hope the professional in file format & an experience help [emoji3].
With thanks
Sent from my LG-D855
Click to expand...
Click to collapse
In your case, yes, a .png image is better quality than a .jpg image.
deutsh said:
Hi, I write this question " What is the best quality" between the JPG & PNG file format.
Well..... I have app "Camera FV-5" and it's let you choose catching file as these formats....
When I shot an image as jpg its about 5MB in size, but the same scene about 16MB in png... Did that mean it's best in quality.?
I know It's (png) a loosless format.
Did the quality of it's worth its big size.?
I hope the professional in file format & an experience help [emoji3].
With thanks
Sent from my LG-D855
Click to expand...
Click to collapse
As far as your matter is concerned....
From left to right, these files are: 24-bit JPG Compressed, 8-bit GIF, 8-bit PNG, Full Quality 24-bit JPG, and 24-bit PNG. Note that the file sizes increase in this same direction.
PNG is the largest image type for bigger images, often containing information you may or may not find useful, depending on your needs. 8-bit PNG is an option, but GIF is smaller. Neither are optimal options for photography, as JPG is much smaller than lossless PNG with only minimal loss of quality. And for storage of high resolution files, JPG compresses to tiny proportions, with quality loss only visible on close inspection.
In short:
PNG is good option for transparency and non-lossy, smaller files. Larger files, not so much, unless you demand non-lossy images.
GIF is largely a novelty and only useful for animation, but can produce small 8-bit images.
JPG is still the king for photographs and photo-like images on the internet, but be careful, as your file can degrade with every save.
Hope this is enough for you to get the point.
ayushbpl10
Thanks a lot, and I ( therefore) have another question :
" Did png have high range of lighting details like 0-255 as RAW file ( the jpg have just 0-100).?
Sent from my LG-D855
deutsh said:
Thanks a lot, and I ( therefore) have another question :
" Did png have high range of lighting details like 0-255 as RAW file ( the jpg have just 0-100).?
Sent from my LG-D855
Click to expand...
Click to collapse
There's nothing of that sort instead everything is manage by the bits per channel. PNG gives a much wider range of color depths, including 24-bit (8 bits per channel) and 48-bit (16 bits per channel) truecolor, allowing for greater color precision, smoother fades, etc.[25] When an alpha channel is added, up to 64 bits per pixel (before compression) are possible. This is more technical & holds importance for a photographer only.
ayushbpl10
ayushbpl10 said:
There's nothing of that sort instead everything is manage by the bits per channel. PNG gives a much wider range of color depths, including 24-bit (8 bits per channel) and 48-bit (16 bits per channel) truecolor, allowing for greater color precision, smoother fades, etc.[25] When an alpha channel is added, up to 64 bits per pixel (before compression) are possible. This is more technical & holds importance for a photographer only.
ayushbpl10
Click to expand...
Click to collapse
Thanks a lot [emoji2]
Sent from my LG-D855

DNG to JPG converter which actually works properly...

I have tried several apps but they either don't recognise the phone's camera app's DNG format or they are simply useless for other reasons e.g. always writing the output to some directory (folder) in the device filespace which one then has to move them out of.
I need something which can convert them from the SD card
e.g. 0000-0000/DCIM/Camera
to the same place.
The S7 is rooted, with SDfix etc.
I would appreciate any tips. Basically I would like an app which works with the Samsung DNG format and which has configurable in and out folders.
Android v6, not v7, rooted.
If you have RAW enabled in camera settings, the phone also stores a JPEG of the exact same photo, so no need to convert them really
Not sure about Android apps, but on PC just load them into your favourite RAW photo editor and export them as JPEGs (Lightroom for example)
Not quite... taking the DNG and processing it with say Lightroom produces a vastly better quality photo.
See e.g. here for examples
https://www.euroga.org/forums/websi...anywhere-as-good-as-a-dslr/post/166993#166993
The Jpegs from the phone are over-contrasty and over-sharpened. One should never apply unsharp mask until the image is resized to the final resolution (if at all).
Yes I know that, which is why I suggestion Lightroom
Converting on the phone is not going to give anywhere near the same results as PC Lightroom
Use a PC
Not quite... taking the DNG and processing it with say Lightroom produces a vastly better quality photo.
See e.g. here for examples
https://www.euroga.org/forums/websi...anywhere-as-good-as-a-dslr/post/166993#166993
The Jpegs from the phone are over-contrasty and over-sharpened. One should never apply unsharp mask until the image is resized to the final resolution (if at all).
The real issue IMHO is that all the camera apps are mostly just control panels for the camera API. They don't AIUI get the image to play with. That is why e.g. all of them have the same contrast steps, same exposure range, etc. The JPG is done by the OS and the app gets what it gets. One camera app developer explained this to me.

[APP][4.1+] Luma: heic 2 jpg converter and viewer. Open iPhone photos on Android

Hello.
Many people had a difficulty with opening new iPhone *.heic image files on Android and I have created the app to help them solve this problem.
Now you can open photos from iPhone (.heic) on Android device using Luma: *.heic to jpg converter and viewer offline.
URL: https://play.google.com/store/apps/details?id=luma.hevc.heif.image.viewer.converter
This is simple app which let you to view heic pictures and convert any number of them to jpeg at one time in several clicks preserving quality and all metadata.
App features:
* Browse and view any folder containing *.heic files.
* Open and view *.heic images.
* Save and share *.heic images in *.jpeg format.
* Batch convert any number of *.heic images preserving quality and metadata.
* Preserve all image metadata like: location, Exif, XMP, Copyright, ICC profile.
* Preserve depth image if presented.
Luma is designed to enable you open and convert to jpeg multiple images with *.HEIC file extension at a time. These are images in High Efficient Image Format (HEIF). Images in this format take twice less space on your device without any loss of image quality. Using this format will help you to save up to 50% of storage space for images.
Luma works completely offline and you don't need to internet connection to make the app working. You can either open single image or select any number of images and convert them to jpeg without loosing quality or metadata.
Hope for your positive feedback and review
The app does not transfer metadata when converting to HEIC. And it does not recognize DNG files as source. Can you please fix that?
Thank you
HEIF and HEIC file association to Luma app by file managers
Congratulations for this very nice Luma app! It enables HEIC file viewing on Holographic 3D phones (RED Hydrogen One and EStar Takee 1) as well as on other autostereoscopic 3D phones (ZTE Axon 7 Max and SuperD D1).
Why is the Luma app invisible to several android file managers (CX File Explorer, X-plore, Total Commander, Files by Google, etc.)?
Is it feasible to enable HEIF and HEIC file association to Luma app by the aforementioned file managers?
Can you do it, please? It will make many people happy.
Regards,
YuriRM
Parsing Error from Playstore with new Update.

Question [Resolved] DNG and JPG Resolution and File Size

I set my camera to take JPG and DNG files. One of the JPGs is 4080 x 3072 pixels, 3.6 MB and 96 dpi while the DNG file for that photo is 1280 x 964 pixels, 13.7 MB, and 96 dpi.
I am viewing them with the Photos app on my Windows 10 computer.
When I zoom into the same areas on the images, the JPG is 285% and the DNG 635%. Both images are the same size (occupy the same area) on my monitor. When I zoom into the images, the DNG is pixelated much, much more than the JPG.
I don't understand why the DNG file size is 3 times that of the JPG but the JPG has at least 4 times as much detail. Here is an example:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It appears that the DNG has 10 MB of info that is not image-related. Can somebody please help me understand what's going on here?
DNG is a file format for raw data from the image sensor. It uses lossless compression, meaning that the compression it uses does not cause any loss of data/quality. In the context of a phone camera, this file format isn't really meant to be used as the final form or finished product. It is meant to be digitally developed in an application like Photoshop or Lightroom. By doing this the photographer is able to have more detail and information to work with and more control over the final product. Before processing, DNG images usually look a bit grainy/noisey, a bit washed out, with low contrast. DNG is used as a "Digital Negative" archival format, similar to how photo negatives were kept as master archival copies of film photos.
The JPG file that is created by your phone has already been processed to make it better by the camera software, meaning that things like contrast, color balance, saturation, sharpening, etc are already adjusted. So this can be one reason that the JPG looks better than the DNG. The JPG that is exported probably has at least some quality loss from the higher lossy compression and has less metadata. This means that if the file is adjusted or altered and saved again as a JPG the quality can degrade even more.
The DNG file should be close the to resolution of the JPG. I just compared some files of mine and the DNG is only about 16px shorter than the JPG. I am not sure of the reason for this. Maybe someone else can clear this up. DNG format can embed a JPG preview. I don't use Windows, but my guess is that maybe the image viewing program that you are using doesn't fully support DNG as is just showing the embedded JPG metadata.
Thank you for your reply.
>>I just compared some files of mine and the DNG is only about 16px shorter than the JPG.<<
Not sure how your DNG could be 16 pixels "shorter" than the corresponding JPG.
In my post I've described my photo in great detail in both its JPG and its DNG format. The DNG file is 13.7 MB and the JPG is 3.6 MB, about the same ratio as my other photos on the camera.
The DNG that I see on my screen is extremely over-sharpened. It looks like someone has gone bananas with the Sharpening function. Don't know why.
The DNG file does not contain the level of detail that is in the JPG when viewed on the screen. If you compare the leaves in the images you will notice that the leaves in the DNG are just about obliterated due to the low resolution while the same leaves in the JPG are clearly visible due to the higher resolution.)
>>The DNG file should be close the to resolution of the JPG.<<
In my experience, depending upon the content of the original TIF or DNG file, the file size of a JPG derived from a DNG file is about a tenth the size of a TIF or the DNG. Too bad there is no option for the Pixel 7 to save the photo as an uncompressed TIF.
Google has done an excellent job of creating JPGs from DNGs. Maybe what I'm seeing on my Windows 10 computer when I view a DNG file is not the full DNG but only a representation of the image used to approximate the actual photo? I dunno.
If I have misunderstood something about DNG files, perhaps somebody can chime in and show me what it is. I'd sure like to know how I can use them to create my own JPG or TIF files. If there is a program that can display the full 13.7 MB of my DNG file, I'd like to hear about it.
Skuddle said:
Not sure how your DNG could be 16 pixels "shorter" than the corresponding JPG.
Click to expand...
Click to collapse
Here is what I mean by 16px shorter. See the screenshots of the image dimensions of my JPG vs DNG below. They are roughly the same proportion, but the size difference (dimensions) is only about 0.04% in my case. So the height goes down by 16px and the width by 15px.
Spoiler
In my experience, depending upon the content of the original TIF or DNG file, the file size of a JPG derived from a DNG file is about a tenth the size of a TIF or the DNG. Too bad there is no option for the Pixel 7 to save the photo as an uncompressed TIF.
Click to expand...
Click to collapse
Oops
Yeah, I was wrong here. I was focusing at the pixel dimensions and didn't see the resolution was different. Sorry about that. In the screenshots I posted near the beginning of the post the JPG is 3072x4080 at 72dpi and the DNG is 3056x4064 at 300dpi
In my post I've described my photo in great detail in both its JPG and its DNG format. The DNG file is 13.7 MB and the JPG is 3.6 MB, about the same ratio as my other photos on the camera.
Click to expand...
Click to collapse
DNG files will usually be significantly larger in file size than a JPG of similar dimensions, because they contain more data and metadata and the lossless compression isn't as effective as a lossy compressor like JPG.
The DNG that I see on my screen is extremely over-sharpened. It looks like someone has gone bananas with the Sharpening function. Don't know why.
The DNG file does not contain the level of detail that is in the JPG when viewed on the screen. If you compare the leaves in the images you will notice that the leaves in the DNG are just about obliterated due to the low resolution while the same leaves in the JPG are clearly visible due to the higher resolution.)
Click to expand...
Click to collapse
Google has done an excellent job of creating JPGs from DNGs. Maybe what I'm seeing on my Windows 10 computer when I view a DNG file is not the full DNG but only a representation of the image used to approximate the actual photo? I dunno.
Click to expand...
Click to collapse
I think the application you are using (WIndows Photos App) doesn't properly support viewing DNG files. DNG files often have an embedded JPG image to be used as a preview. These embedded images can be used for things like image thumbnails in your operating system. The preview images is going to be smaller and lower resolution that the actual DNG data. I think you Photos app on your computer is just displaying the embedded JPG preview rather than the actual DNG data. Since DNG is sort of a specialty/proffessional file format, most photo apps just don't have full support for it.
I'd sure like to know how I can use them to create my own JPG or TIF files. If there is a program that can display the full 13.7 MB of my DNG file, I'd like to hear about it.
Click to expand...
Click to collapse
I use Adobe Lightroom to process my DNG files. Photoshop comes with the RAW plugin, which can also process them. Both of those application can get kind of expensive ,because they require a subscription. If you want something free you can try playing around with one of these:
darktable
darktable is an open source photography workflow application and raw developer
www.darktable.org
Home
rawtherapee.com
Skuddle said:
Thank you for your reply.
>>I just compared some files of mine and the DNG is only about 16px shorter than the JPG.<<
Not sure how your DNG could be 16 pixels "shorter" than the corresponding JPG.
In my post I've described my photo in great detail in both its JPG and its DNG format. The DNG file is 13.7 MB and the JPG is 3.6 MB, about the same ratio as my other photos on the camera.
The DNG that I see on my screen is extremely over-sharpened. It looks like someone has gone bananas with the Sharpening function. Don't know why.
The DNG file does not contain the level of detail that is in the JPG when viewed on the screen. If you compare the leaves in the images you will notice that the leaves in the DNG are just about obliterated due to the low resolution while the same leaves in the JPG are clearly visible due to the higher resolution.)
>>The DNG file should be close the to resolution of the JPG.<<
In my experience, depending upon the content of the original TIF or DNG file, the file size of a JPG derived from a DNG file is about a tenth the size of a TIF or the DNG. Too bad there is no option for the Pixel 7 to save the photo as an uncompressed TIF.
Google has done an excellent job of creating JPGs from DNGs. Maybe what I'm seeing on my Windows 10 computer when I view a DNG file is not the full DNG but only a representation of the image used to approximate the actual photo? I dunno.
If I have misunderstood something about DNG files, perhaps somebody can chime in and show me what it is. I'd sure like to know how I can use them to create my own JPG or TIF files. If there is a program that can display the full 13.7 MB of my DNG file, I'd like to hear about it.
Click to expand...
Click to collapse
The issue is that you're only getting a "Preview" with the DNG file hence the "low" resolution. When you open the same DNG in an editing software like Adobe PS or LR, (or any other) you will be able to work with the FULL resolution inside and edit it as you wish.
>>I think you Photos app on your computer is just displaying the embedded JPG preview rather than the actual DNG data.<<
>>The issue is that you're only getting a "Preview" with the DNG file hence the "low" resolution.<<
I think both of you are correct about the preview. Now to search for something affordable that will open a DNG and not just a preview.
Thank you both for your help! I'll download the "darktable" app and have a look.
Skuddle said:
>>I think you Photos app on your computer is just displaying the embedded JPG preview rather than the actual DNG data.<<
>>The issue is that you're only getting a "Preview" with the DNG file hence the "low" resolution.<<
I think both of you are correct about the preview. Now to search for something affordable that will open a DNG and not just a preview.
Thank you both for your help! I'll download the "darktable" app and have a look.
Click to expand...
Click to collapse
Gimp can do it and it is free last I checked.
"darktable" doesn't work for me (tried, and uninstalled it).
Anyways, I fiddled around, trying this and that and was able to successfully open the DNG at its full resolution using Irfanview. For those who are interested, here's what I did:
I opened Irfanview and clicked on "Options", then on "Property Settings".
I clicked "PlugIns" at the bottom of the page. A "PlugIns" window opened.
"Try to load embedded preview..." at the top of the PlugIns window was checked, so I unchecked it and clicked "Okay".
I loaded a DNG file. It loaded at full resolution (i.e. no preview JPG!)
I saved the file as a TIF using "Save as" and was then able to open the TIF in my prehistoric Photoshop 7 app.

Categories

Resources