"จะอัพรูปลงเว็บทั้งที ใช้ไฟล์ประเภทไหนถึงเหมาะสมนะ !?" <3
.
กับคำถามในหัวช่วงแรก ๆ ของการทำเว็บ (จนไปถึงแอปพลิเคชัน) ว่า ถ้าเราอยากอัพภาพให้คมชัด จนไปถึง อยากให้ภาพของเราขนาดเล็ก โหลดเพจไว ๆ
.
"ควรใช้ไฟล์ภาพประเภทไหนดี ?" วันนี้แอดจะพาทุกคนไปรู้จักทุกประเภทสำคัญ สำหรับงานเว็บไปพร้อมกัน ^_^
.
✅ JPEG (Joint Photographic Experts Group image)
.
รูปที่ใช้กันโดยทั่วไป JPEG เป็นไฟล์ประเภท lossy หมายความว่าไฟล์ประเภทนี้จะลดทอนข้อมูลบางส่วนที่ไม่สำคัญของภาพออกไปอย่างถาวร แต่ได้ไฟล์เล็กกว่า
.
เหมาะใช้กับภาพถ่ายหรือรูปที่ไม่จำเป็นต้องมีรายละเอียดครบ แต่ถ้าใช้กับกราฟหรือแผนภาพต่างๆ ที่ต้องการความละเอียดสูง อาจจะได้ผลลัพธ์ที่ไม่ดีนัก
.
✅ PNG (Portable Network Graphics)
PNG นั้นขึ้นชื่อเรื่องคำว่า lossless เหมาะใช้กับรูปทั่วไปบนเว็บไซต์ การบีบอัดที่คงรายละเอียดดีกว่า JPEG
.
และมีสีที่ดีกว่า GIF แต่ก็แลกมากับไฟล์ขนาดใหญ่กว่า ที่สำคัญ PNG ยังสามารถสร้างภาพเคลื่อนไหวได้ด้วย ซึ่งหลักการก็จะคล้ายๆกับ GIF เรียกว่า APNG (Animated)
.
✅ GIF (Graphics Interchange Format)
เป็นที่นิยมมากใน social media, ด้วยความเรียบง่ายของมัน และจุดเด่นที่สามารถสร้างภาพเคลื่อนไหวแบบง่ายๆได้
.
โดย GIF เป็นไฟล์ภาพที่มีมาตั้งแต่ปี 1987โดยสมัยนั้น GIF ถูกผลิตมาเป็นไฟล์ภาพที่แบบ Lossless แต่ก็เพียง 8-bit color เท่านั้น ซึ่งปัจจุบันถ้าต้องการความละเอียดใช้ PNG จะดีกว่า
.
✅ SVG (Scalable Vector Graphics)
เป็นไฟล์ภาพที่ใช้รองรับภาพแบบ Vector ที่จะคงข้อมูลการวาดไว้อย่างครบถ้วนไม่ว่าจะเป็น รูปร่าง เส้น และสี
.
ดังนั้นซูมแค่ไหนก็ไม่แตกแน่นอน เหมาะจะใช้กับ แผนภาพ และ icon ต่างๆ และเราสามารถนำไฟล์ SVG มาเปิดใน text editor แล้วเราจะได้
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
「css image animation」的推薦目錄:
- 關於css image animation 在 BorntoDev Facebook 的精選貼文
- 關於css image animation 在 紀老師程式教學網 Facebook 的最佳解答
- 關於css image animation 在 コバにゃんチャンネル Youtube 的精選貼文
- 關於css image animation 在 大象中醫 Youtube 的精選貼文
- 關於css image animation 在 大象中醫 Youtube 的精選貼文
- 關於css image animation 在 Making things move with CSS3 animations - WebPlatform.org 的評價
- 關於css image animation 在 problem with removing animation and show full size image ... 的評價
- 關於css image animation 在 css-animations · GitHub Topics 的評價
css image animation 在 紀老師程式教學網 Facebook 的最佳解答
[WebTech #72] CSS > 4. CSS 範例 > 4-5 圖形處理 > 4-5-1 縮圖(Thumbnails)
喜歡拍照的朋友,一定會想要在一個網頁內,顯示越多圖片越好。那麼,您就不能錯過現在正要介紹的功能:縮圖(Thumbnails)。
用 CSS 呈現縮圖是相當方便、且效果多元的。本篇分享的縮圖效果有:一般、動畫(含:縮放、糊化、加註...)等效果。讓我們現在馬上就來看看吧!
一般縮圖:
(1) http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/perfectly-rotate-and-mask-thumbnails-with-css3/
(2) http://webdesignerwall.com/tutorials/creating-a-modern-lightbox-with-css3-and-javascript
(3) http://webdesignerwall.com/tutorials/css3-image-styles
動畫縮圖(縮放):
(1) http://tutorialzine.com/2012/05/growing-thumbnails-portfolio-jquery-css3/
(2) http://www.tangledindesign.com/blog/enhancing-thumb-galleries-css3-transitions-transforms/
(3) http://tympanus.net/codrops/2012/01/04/thumbnail-proximity-effect/
(4) http://inspectelement.com/tutorials/create-a-css3-image-gallery-with-a-3d-lightbox-animation/
動畫縮圖(糊化,Blur):
(1) http://www.red-team-design.com/css-filter-effects-in-action
動畫縮圖(加註,Annotation):
(1) http://pehaa.com/2012/02/create-your-portfolio-gallery-using-html5-canvas-tutorial/
(2) http://tympanus.net/codrops/2011/12/26/css3-lightbox/
(3) http://tympanus.net/codrops/2012/01/09/filter-functionality-with-css3/
其它縮圖效果:
(1) http://tympanus.net/codrops/2012/07/20/3d-flipping-circle-with-css3-and-jquery/
底下這個雖然不算縮圖,不過它與製作縮圖所用的技巧差不多,因此我就把它放在這裡了:
* 使用 CSS 製作「便利貼」: http://net.tutsplus.com/tutorials/html-css-techniques/create-a-sticky-note-effect-in-5-easy-steps-with-css3-and-html5/
---
最棒的 CSS Selector 或 Properties 線上參考手冊:
(進入後,Selector 在中央,Properties 在左下選單)
http://www.w3schools.com/cssref/css_selectors.asp
css image animation 在 problem with removing animation and show full size image ... 的推薦與評價
... <看更多>
相關內容
css image animation 在 css-animations · GitHub Topics 的推薦與評價
Full featured JavaScript image & video gallery. ... a [μ] microInteraction library built with CSS Animations and controlled by JavaScript Power. ... <看更多>
css image animation 在 Making things move with CSS3 animations - WebPlatform.org 的推薦與評價
CSS animations allow you to build complex animated sequences. Like transitions, they manipulate the CSS properties that control how interface elements ... ... <看更多>