PNG and JPG

Ads
 

PNG and JPG

hii,

When to use PNG or JPG in iPhone development?

View Answers

October 19, 2010 at 2:49 PM

PNG's are pixel perfect (non-lossy), and require very little extra CPU energy to display.

JPG's are smaller to store, but lossy (amount depends on compression level), and to display them requires a much more complicated decoding process. But the typical compression and image quality is usually quite sufficient for photos.

Use JPG's for photos and for anything large, and PNG's for anything small and/or designed to be displayed "pixel perfect" (e.g. small icons) or as a part of a composited transparent overlay

Ads









Related Tutorials/Questions & Answers:
PNG and JPG
PNG and JPG  hii, When to use PNG or JPG in iPhone development?   PNG's are pixel perfect (non-lossy), and require very little extra CPU... for photos. Use JPG's for photos and for anything large, and PNG's
ModuleNotFoundError: No module named 'jpg-sorter'
ModuleNotFoundError: No module named 'jpg-sorter'  Hi, My Python... 'jpg-sorter' How to remove the ModuleNotFoundError: No module named 'jpg... have to install padas library. You can install jpg-sorter python
Advertisements
ModuleNotFoundError: No module named 'jpg-sorter'
ModuleNotFoundError: No module named 'jpg-sorter'  Hi, My Python... 'jpg-sorter' How to remove the ModuleNotFoundError: No module named 'jpg... have to install padas library. You can install jpg-sorter python
Version of com.keypoint>png-encoder dependency
List of Version of com.keypoint>png-encoder dependency
ModuleNotFoundError: No module named 'myon-png'
ModuleNotFoundError: No module named 'myon-png'  Hi, My Python... 'myon-png' How to remove the ModuleNotFoundError: No module named 'myon-png... to install padas library. You can install myon-png python with following
ModuleNotFoundError: No module named 'png_util'
ModuleNotFoundError: No module named 'png_util'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'png_util' How to remove the ModuleNotFoundError: No module named 'png_util
ModuleNotFoundError: No module named 'png_util'
ModuleNotFoundError: No module named 'png_util'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'png_util' How to remove the ModuleNotFoundError: No module named 'png_util
ModuleNotFoundError: No module named 'dffml-config-png'
ModuleNotFoundError: No module named 'dffml-config-png'  Hi, My... named 'dffml-config-png' How to remove the ModuleNotFoundError: No module named 'dffml-config-png' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'icon_font_to_png'
ModuleNotFoundError: No module named 'icon_font_to_png'  Hi, My... named 'icon_font_to_png' How to remove the ModuleNotFoundError: No module named 'icon_font_to_png' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'png_header_injector'
ModuleNotFoundError: No module named 'png_header_injector'  Hi, My... named 'png_header_injector' How to remove the ModuleNotFoundError: No module named 'png_header_injector' error? Thanks   Hi
ModuleNotFoundError: No module named 'png_header_injector'
ModuleNotFoundError: No module named 'png_header_injector'  Hi, My... named 'png_header_injector' How to remove the ModuleNotFoundError: No module named 'png_header_injector' error? Thanks   Hi
ModuleNotFoundError: No module named 'thumbor-png-optimizers'
ModuleNotFoundError: No module named 'thumbor-png-optimizers'  Hi...: No module named 'thumbor-png-optimizers' How to remove the ModuleNotFoundError: No module named 'thumbor-png-optimizers' error? Thanks   Hi
pngcrush caught libpng error not a png file
pngcrush caught libpng error not a png file  What is " pngcrush caught libpng error not a png file " error that occurs while running my app in simulator
how to covert JPG format to Binary formart using java code..
how to covert JPG format to Binary formart using java code..  convert JPG format to Binary formart How can i convert JPG format to Binary format using java code plz help me out
Maven Dependency png-encoder >> 1.5
You should include the dependency code given in this page to add Maven Dependency of com.keypoint >> png-encoder version1.5 in your project
How to change the color of a base64-encoded png image JQuery?
How to change the color of a base64-encoded png image JQuery?  I am going to change the colors of the pixels of a png image(which is in base64 format...;; //"data:image/png
how to convert php webpage to jpg file/take screenshot from client side
how to convert php webpage to jpg file/take screenshot from client side  how to convert php webpage to jpg file/take screenshot from client side
PNG images become black colored during create image
PNG images become black colored during create image  if($sFileExtension == "PNG" || $sFileExtension == "png") { $img1 = @imagecreatefrompng($file..., $smallestSide1); if($sFileExtension == "PNG" || $sFileExtension == "png") { imagepng
how to re size image proportionately using java for different images like jpeg, png, gif.
how to re size image proportionately using java for different images like jpeg, png, gif.  hi, i need sample code for re size image proportionately using java for different images like jpeg, png, gif, this code for my
iphone retina display dimensions
, and the file must be .jpeg, .jpg, .tif, .tiff, or .png
code required
.jpg,,png etc files) But i am not getting how to provide this option on the JSP
Regarding Image in Swings
= file.getName().toLowerCase(); return (name.endsWith(".jpg") || name.endsWith(".png... (*.gif,*.bmp, *.jpg, *.png
about java swing - Java Beginners
name = file.getName().toLowerCase(); return (name.endsWith(".jpg") || name.endsWith(".png")|| name.endsWith(".gif")); } public String getDescription() { return "Images (*.gif,*.bmp, *.jpg, *.png )"; } } Thanks
browse image
(name.endsWith(".jpg") || name.endsWith(".png")|| name.endsWith(".gif")); } public String getDescription() { return "Images (*.gif,*.bmp, *.jpg, *.png
browse image
(name.endsWith(".jpg") || name.endsWith(".png")|| name.endsWith(".gif")); } public String getDescription() { return "Images (*.gif,*.bmp, *.jpg, *.png
Browse an image
(".jpg") || name.endsWith(".png")|| name.endsWith(".gif")); } public String getDescription() { return "Images (*.gif,*.bmp, *.jpg, *.png
Java Write To Image File Example
(bufferedImage, "jpg", myJpegImage); ImageIO.write(bufferedImage, "bmp", myBmpImage..., "png", myPngImage); An example of above file is given below... */ ImageIO.write(bufferedImage, "jpg", myJpegImage); ImageIO.write(bufferedImage
why my downloaded file is alwayes damaged or corrupted?
") || (substr($file, -3)=="jpg") || (substr($file, -3)=="png
error occured in following page ... how to resolve it?
static final String IMAGE_JPEG = "jpeg"; public static final String IMAGE_JPG = "jpg"; public static final String IMAGE_PNG = "png"; private ImageIcon
jsp programming
converting a pdf file to png format using pdftron JSP programming  Hello, I am trouble in converting a pdf file to png format using pdftron. plz guide me, n thanks in advance
Browsing in java
Browsing in java  how to browse particular type of file in java (say).jpg using browse button

Ads