SlideShare a Scribd company logo
pixel
Tech Talk Indosystem 29.07.16
@lawrencegs
Apa itu Pixel?
pix·el
akronim dari “picture element”
unit terkecil dari gambar digital
setiap pixel memuat 1 warna
konsep pixel & penamaannya ditemukan oleh
seorang engineer bernama Frederic C.
Billingsley yang bekerja untuk JPL pada tahun
1965.
Pixel Pikachu
Frederic Billingsley
Implementasi Pixel
Kembali ke Mario
Seiring perkembangan
teknologi display dalam 20
tahun terakhir, jumlah
pixel yang tersedia
semakin besar.
Bandingkan karakter Mario
di tahun 1985 yang sebesar
16 x 32 pixel
Dan Mario di tahun 2015
yang bisa memuat jutaan
pixel.
Aspect
Ratio Resolusi Kategori Tipe / Contoh
[4:3] 640 x 480 Monitor Tabung (CRT)
[4:3] 800 x 600 Monitor Tabung (CRT)
[4:3] 1024 x 768 Monitor Tabung (CRT)
[16:9] 1280 x 720 (720p) Televisi HD
[16:10] 1280 x 800 Monitor Widescreen
[16:9] 1366 x 768 Monitor Widescreen
[16:9] 1920 x 1080 (1080p) Televisi Full HD
[16:10] 1920 x 1200 Monitor Widescreen 24” keatas
[16:9] 2560 x 1440 (Quad HD) iMac 27”, Nexus 6p, Galaxy Note 4, Galaxy S7
[16:10] 2560 x 1600 Retina MBP 13”
[16:10] 2880 x 1800 Retina MBP 15”
[16:9] 3840 x 2160 (4K UHD) Televisi 4K
[16:9] 5120 x 2880 (5K) iMac 5K
[16:9] 7680 x 4320 (8K UHD) Televisi 8K
Display Populer
Display di Handphone
Phone Resolusi Diagonal Density
Galaxy S7 Edge 1,440 x 2,560 5.5 inch 534 ppi
Nexus 6p 1,440 x 2,560 5.7 inch 515 ppi
Nexus 5x 1,920 x 1,080 4.7 inch 424 ppi
iPhone 6 Plus 1,920 x 1,080 5.5 inch 401 ppi
iPhone 6 1,334 x 750 4.7 inch 326 ppi
iPhone 5 1,136 x 640 4 inch 326 ppi
iPhone 4 960 x 640 4 inch 326 ppi
iPhone 3G 480 x 320 3.5 inch 163 ppi
Resolusi & Density
Screen Density = (diagonal resolution) / (diagonal size)
Satuan Screen Density = pixel per inch (ppi) atau dot per inch (dpi)
Misal: iPhone 6/6s plus
resolusi lebar 1,920 pixel
resolusi tinggi 1,080 pixel
resolusi diagonal = (1920^2+1080^2)^0.5 = 2,203~ pixel
lebar layar = 2.69 inch
tinggi layar = 4.79 inch
diagonal layar = (2.69^2+4.79^2)^0.5 = 5.5~ inch
screen density = 2202 pixel / 5.5 inch = 401 pixel per inch
Retina Display ?
“It turns out there’s a magic number right around 300 pixels per inch, that when
you hold something around to 10 to 12 inches away from your eyes, is the limit of
the human retina to differentiate the pixels.”
- Steve Jobs
Implikasi “Retina” display bagi kita-kita ?
Bagi Pengguna “Awam”
● WOW GAMBARNYA TAJAM
● KOK BLUR YAH?
Bagi Desainer?
● Desain di high-resolution!
○ Icon di Apple App Store minta 1024 x 1024 pixels.
● Vector image is your friend.
○ Bisa diresize sebesar / sekecil mungkin, dan “ga pecah”
● Satu image, banyak resolusi.
○ Beda device, beda ppi, beda image.
Bagi Developer?
● Mainly image targeting & processing
Implikasi “Retina” display bagi kita-kita ?
Bagi Web Developer
● Media-query untuk targeting high-res device
@media only screen and (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi) {
/* High-res styles go here */
.logo {
background-image:url(assets/sprite@2x.png);
background-size:500px 500px;
}
}
● Menggunakan Retina.JS
There are now 4 ways to use retina.js:
1. Automatically swapping out "src" paths on "img" tags.
2. Automatically swapping out background image URLs in inline styles.
3. Manually specifying the location of a high-res image variant.
4. Automatically creating media queries for CSS background images.
● High-res image tidak selalu big-size image
○ Photoshop JPEG Compression (set quality ga harus 100)
○ TinyJPG.com & TinyPNG.com
○ JPEGMini.com
○ Pengguna OSX => imageAlpha & imageOptim
Implikasi “Retina” display bagi kita-kita ?
Bagi Android Developer
● Beda Device - Beda Density
○ ldpi (low) ~120dpi
○ mdpi (medium) ~160dpi
○ hdpi (high) ~240dpi
○ xhdpi (extra-high) ~320dpi
○ xxhdpi (extra-extra-high) ~480dpi
○ xxxhdpi (extra-extra-extra-high) ~640dpi
● Implementasi?
res/layout/my_layout.xml // layout for normal screen size ("default")
res/layout-large/my_layout.xml // layout for large screen size
res/layout-xlarge/my_layout.xml // layout for extra-large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra-large in landscape orientation
res/drawable-mdpi/graphic.png // bitmap for medium-density
res/drawable-hdpi/graphic.png // bitmap for high-density
res/drawable-xhdpi/graphic.png // bitmap for extra-high-density
res/drawable-xxhdpi/graphic.png // bitmap for extra-extra-high-density
res/mipmap-mdpi/my_icon.png // launcher icon for medium-density
res/mipmap-hdpi/my_icon.png // launcher icon for high-density
res/mipmap-xhdpi/my_icon.png // launcher icon for extra-high-density
res/mipmap-xxhdpi/my_icon.png // launcher icon for extra-extra-high-density
res/mipmap-xxxhdpi/my_icon.png // launcher icon for extra-extra-extra-high-density
● Beda Device - Beda Layout
○ xlarge screens => at least 960dp x 720dp
○ large screens => at least 640dp x 480dp
○ normal screens => at least 470dp x 320dp
○ small screens => at least 426dp x 320dp
Implikasi “Retina” display bagi kita-kita ?
Bagi iOS Developer
● Beda Device - Beda Assets Resolution
○ iPhone 6/6s plus @3x
○ iPhone 6, 6SE, 5, 5S, 5C @2x
○ iPhone 4, 4S @2x
○ iPhone @1x
○ iPad Pro @2x
○ iPad Air / Retina iPad @2x
○ iPad Mini 2nd & 3rd gen @2x
○ iPad Mini 1st gen @1x
○ iPad @1x
Referensi?
https://material.google.com/layout/units-measurements.html
https://developer.android.com/guide/practices/screens_support.html
Referensi?
https://developer.apple.com/high-resolution/
Makasih
@lawrencegs - Indosystem 2016

More Related Content

Similar to Tech Talk July 29 - Pixel

UX and UI Designing for all android screen
UX and UI Designing for all android screenUX and UI Designing for all android screen
UX and UI Designing for all android screen
Arnold Saputra
 
Android在多屏幕、多设备上的适配 | 布丁 任斐
Android在多屏幕、多设备上的适配 | 布丁 任斐Android在多屏幕、多设备上的适配 | 布丁 任斐
Android在多屏幕、多设备上的适配 | 布丁 任斐
imShining @DevCamp
 
Supporting multi screen in android
Supporting multi screen in androidSupporting multi screen in android
Supporting multi screen in android
rffffffff007
 
How computer monitors work
How computer monitors workHow computer monitors work
How computer monitors work
RaxTonProduction
 
Technical documentation of game development Part -1
Technical documentation of game development Part -1Technical documentation of game development Part -1
Technical documentation of game development Part -1
krishn verma
 
Pixel
PixelPixel
Supporting multi screen in android cn
Supporting multi screen in android cnSupporting multi screen in android cn
Supporting multi screen in android cn
rffffffff007
 
divide and qonquer
divide and qonquerdivide and qonquer
divide and qonquer
Arvind Choudhary
 
Crossing the Resolution Divide
Crossing the Resolution DivideCrossing the Resolution Divide
Crossing the Resolution Divide
Cyrene Domogalla
 
Ux & hybrid app
Ux & hybrid appUx & hybrid app
Ux & hybrid app
Ahmad Firoz
 
Android training day 3
Android training day 3Android training day 3
Android training day 3
Vivek Bhusal
 
AVER VISUALIZER M70
AVER VISUALIZER M70AVER VISUALIZER M70
AVER VISUALIZER M70
msedukasi
 
Digital camcorder
Digital camcorderDigital camcorder
Digital camcorder
联特 威
 
Digital Images - Computerese
Digital Images - ComputereseDigital Images - Computerese
Digital Images - Computerese
Franklin Public Schools
 
Supporting Multiple Screen In Android
Supporting Multiple Screen In AndroidSupporting Multiple Screen In Android
Supporting Multiple Screen In Android
robbypontas
 
Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1
Aaron Gustafson
 
Photos and Images (Everything Has A Price)
Photos and Images (Everything Has A Price)Photos and Images (Everything Has A Price)
Photos and Images (Everything Has A Price)
msaliba
 
@Bristol Data Dome workshop - NSC Creative
@Bristol Data Dome workshop - NSC Creative@Bristol Data Dome workshop - NSC Creative
@Bristol Data Dome workshop - NSC Creative
South West Data Meetup
 
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
mstonis
 
White Paper - Pixel Pitch 5192014
White Paper - Pixel Pitch 5192014White Paper - Pixel Pitch 5192014
White Paper - Pixel Pitch 5192014
Brett Farley
 

Similar to Tech Talk July 29 - Pixel (20)

UX and UI Designing for all android screen
UX and UI Designing for all android screenUX and UI Designing for all android screen
UX and UI Designing for all android screen
 
Android在多屏幕、多设备上的适配 | 布丁 任斐
Android在多屏幕、多设备上的适配 | 布丁 任斐Android在多屏幕、多设备上的适配 | 布丁 任斐
Android在多屏幕、多设备上的适配 | 布丁 任斐
 
Supporting multi screen in android
Supporting multi screen in androidSupporting multi screen in android
Supporting multi screen in android
 
How computer monitors work
How computer monitors workHow computer monitors work
How computer monitors work
 
Technical documentation of game development Part -1
Technical documentation of game development Part -1Technical documentation of game development Part -1
Technical documentation of game development Part -1
 
Pixel
PixelPixel
Pixel
 
Supporting multi screen in android cn
Supporting multi screen in android cnSupporting multi screen in android cn
Supporting multi screen in android cn
 
divide and qonquer
divide and qonquerdivide and qonquer
divide and qonquer
 
Crossing the Resolution Divide
Crossing the Resolution DivideCrossing the Resolution Divide
Crossing the Resolution Divide
 
Ux & hybrid app
Ux & hybrid appUx & hybrid app
Ux & hybrid app
 
Android training day 3
Android training day 3Android training day 3
Android training day 3
 
AVER VISUALIZER M70
AVER VISUALIZER M70AVER VISUALIZER M70
AVER VISUALIZER M70
 
Digital camcorder
Digital camcorderDigital camcorder
Digital camcorder
 
Digital Images - Computerese
Digital Images - ComputereseDigital Images - Computerese
Digital Images - Computerese
 
Supporting Multiple Screen In Android
Supporting Multiple Screen In AndroidSupporting Multiple Screen In Android
Supporting Multiple Screen In Android
 
Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1Advanced Design Methods 1, Day 1
Advanced Design Methods 1, Day 1
 
Photos and Images (Everything Has A Price)
Photos and Images (Everything Has A Price)Photos and Images (Everything Has A Price)
Photos and Images (Everything Has A Price)
 
@Bristol Data Dome workshop - NSC Creative
@Bristol Data Dome workshop - NSC Creative@Bristol Data Dome workshop - NSC Creative
@Bristol Data Dome workshop - NSC Creative
 
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
Xamarin Evolve 2014 - Designing Android UIs for the Ever Changing Device Land...
 
White Paper - Pixel Pitch 5192014
White Paper - Pixel Pitch 5192014White Paper - Pixel Pitch 5192014
White Paper - Pixel Pitch 5192014
 

Recently uploaded

Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 

Recently uploaded (20)

Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 

Tech Talk July 29 - Pixel

  • 1. pixel Tech Talk Indosystem 29.07.16 @lawrencegs
  • 2.
  • 3. Apa itu Pixel? pix·el akronim dari “picture element” unit terkecil dari gambar digital setiap pixel memuat 1 warna konsep pixel & penamaannya ditemukan oleh seorang engineer bernama Frederic C. Billingsley yang bekerja untuk JPL pada tahun 1965. Pixel Pikachu Frederic Billingsley
  • 5. Kembali ke Mario Seiring perkembangan teknologi display dalam 20 tahun terakhir, jumlah pixel yang tersedia semakin besar. Bandingkan karakter Mario di tahun 1985 yang sebesar 16 x 32 pixel Dan Mario di tahun 2015 yang bisa memuat jutaan pixel.
  • 6. Aspect Ratio Resolusi Kategori Tipe / Contoh [4:3] 640 x 480 Monitor Tabung (CRT) [4:3] 800 x 600 Monitor Tabung (CRT) [4:3] 1024 x 768 Monitor Tabung (CRT) [16:9] 1280 x 720 (720p) Televisi HD [16:10] 1280 x 800 Monitor Widescreen [16:9] 1366 x 768 Monitor Widescreen [16:9] 1920 x 1080 (1080p) Televisi Full HD [16:10] 1920 x 1200 Monitor Widescreen 24” keatas [16:9] 2560 x 1440 (Quad HD) iMac 27”, Nexus 6p, Galaxy Note 4, Galaxy S7 [16:10] 2560 x 1600 Retina MBP 13” [16:10] 2880 x 1800 Retina MBP 15” [16:9] 3840 x 2160 (4K UHD) Televisi 4K [16:9] 5120 x 2880 (5K) iMac 5K [16:9] 7680 x 4320 (8K UHD) Televisi 8K Display Populer
  • 7. Display di Handphone Phone Resolusi Diagonal Density Galaxy S7 Edge 1,440 x 2,560 5.5 inch 534 ppi Nexus 6p 1,440 x 2,560 5.7 inch 515 ppi Nexus 5x 1,920 x 1,080 4.7 inch 424 ppi iPhone 6 Plus 1,920 x 1,080 5.5 inch 401 ppi iPhone 6 1,334 x 750 4.7 inch 326 ppi iPhone 5 1,136 x 640 4 inch 326 ppi iPhone 4 960 x 640 4 inch 326 ppi iPhone 3G 480 x 320 3.5 inch 163 ppi
  • 8. Resolusi & Density Screen Density = (diagonal resolution) / (diagonal size) Satuan Screen Density = pixel per inch (ppi) atau dot per inch (dpi) Misal: iPhone 6/6s plus resolusi lebar 1,920 pixel resolusi tinggi 1,080 pixel resolusi diagonal = (1920^2+1080^2)^0.5 = 2,203~ pixel lebar layar = 2.69 inch tinggi layar = 4.79 inch diagonal layar = (2.69^2+4.79^2)^0.5 = 5.5~ inch screen density = 2202 pixel / 5.5 inch = 401 pixel per inch
  • 9. Retina Display ? “It turns out there’s a magic number right around 300 pixels per inch, that when you hold something around to 10 to 12 inches away from your eyes, is the limit of the human retina to differentiate the pixels.” - Steve Jobs
  • 10. Implikasi “Retina” display bagi kita-kita ? Bagi Pengguna “Awam” ● WOW GAMBARNYA TAJAM ● KOK BLUR YAH? Bagi Desainer? ● Desain di high-resolution! ○ Icon di Apple App Store minta 1024 x 1024 pixels. ● Vector image is your friend. ○ Bisa diresize sebesar / sekecil mungkin, dan “ga pecah” ● Satu image, banyak resolusi. ○ Beda device, beda ppi, beda image. Bagi Developer? ● Mainly image targeting & processing
  • 11. Implikasi “Retina” display bagi kita-kita ? Bagi Web Developer ● Media-query untuk targeting high-res device @media only screen and (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi) { /* High-res styles go here */ .logo { background-image:url(assets/sprite@2x.png); background-size:500px 500px; } } ● Menggunakan Retina.JS There are now 4 ways to use retina.js: 1. Automatically swapping out "src" paths on "img" tags. 2. Automatically swapping out background image URLs in inline styles. 3. Manually specifying the location of a high-res image variant. 4. Automatically creating media queries for CSS background images. ● High-res image tidak selalu big-size image ○ Photoshop JPEG Compression (set quality ga harus 100) ○ TinyJPG.com & TinyPNG.com ○ JPEGMini.com ○ Pengguna OSX => imageAlpha & imageOptim
  • 12. Implikasi “Retina” display bagi kita-kita ? Bagi Android Developer ● Beda Device - Beda Density ○ ldpi (low) ~120dpi ○ mdpi (medium) ~160dpi ○ hdpi (high) ~240dpi ○ xhdpi (extra-high) ~320dpi ○ xxhdpi (extra-extra-high) ~480dpi ○ xxxhdpi (extra-extra-extra-high) ~640dpi ● Implementasi? res/layout/my_layout.xml // layout for normal screen size ("default") res/layout-large/my_layout.xml // layout for large screen size res/layout-xlarge/my_layout.xml // layout for extra-large screen size res/layout-xlarge-land/my_layout.xml // layout for extra-large in landscape orientation res/drawable-mdpi/graphic.png // bitmap for medium-density res/drawable-hdpi/graphic.png // bitmap for high-density res/drawable-xhdpi/graphic.png // bitmap for extra-high-density res/drawable-xxhdpi/graphic.png // bitmap for extra-extra-high-density res/mipmap-mdpi/my_icon.png // launcher icon for medium-density res/mipmap-hdpi/my_icon.png // launcher icon for high-density res/mipmap-xhdpi/my_icon.png // launcher icon for extra-high-density res/mipmap-xxhdpi/my_icon.png // launcher icon for extra-extra-high-density res/mipmap-xxxhdpi/my_icon.png // launcher icon for extra-extra-extra-high-density ● Beda Device - Beda Layout ○ xlarge screens => at least 960dp x 720dp ○ large screens => at least 640dp x 480dp ○ normal screens => at least 470dp x 320dp ○ small screens => at least 426dp x 320dp
  • 13. Implikasi “Retina” display bagi kita-kita ? Bagi iOS Developer ● Beda Device - Beda Assets Resolution ○ iPhone 6/6s plus @3x ○ iPhone 6, 6SE, 5, 5S, 5C @2x ○ iPhone 4, 4S @2x ○ iPhone @1x ○ iPad Pro @2x ○ iPad Air / Retina iPad @2x ○ iPad Mini 2nd & 3rd gen @2x ○ iPad Mini 1st gen @1x ○ iPad @1x