Each format has its own set of pros and cons. Vector formats are ideally suited for images that consist of simple geometric shapes (e.g. logos, text, icons, and so on), and deliver sharp results at every resolution and zoom setting, which makes them an ideal format for high-resolution screens and assets that need to be displayed at varying sizes.
However, vector formats fall short when the scene is complicated (e.g. a photo): the amount of SVG markup to describe all the shapes can be prohibitively high and the output may still not look “photorealistic”. When that’s the case, that’s when you should be using a raster image format such as GIF, PNG, JPEG, or one of the newer formats such as JPEG-XR and WebP.
Raster images do not have the same nice properties of being resolution or zoom independent - when you scale up a raster image you’ll see jagged and blurry graphics. As a result, you may need to save multiple versions of a raster image at various resolutions to deliver the optimal experience to your users.
แต่ละรูปแบบมีชุดของตัวเอง pros และ cons รูปแบบเวกเตอร์เหมาะเหมาะสำหรับภาพที่ประกอบด้วยรูปทรงเรขาคณิตง่ายๆ ( เช่นโลโก้ , ข้อความ , ไอคอน , และอื่น ๆ ) และส่งมอบผลลัพธ์ที่คมชัดในทุกความละเอียดและการซูม ซึ่งทำให้พวกเขาเหมาะสำหรับหน้าจอความละเอียดสูงรูปแบบและทรัพย์สินที่ต้องแสดงผลที่ขนาดแตกต่างกันอย่างไรก็ตาม รูปแบบเวกเตอร์ตกสั้นเมื่อฉากที่ซับซ้อน ( เช่นรูปภาพ ) : ปริมาณของ SVG แบบอธิบายรูปร่างทั้งหมดสามารถเป็น prohibitively สูงและส่งออกอาจจะยังไม่ได้ดู " เหมือนจริง " เมื่อเป็นอย่างนั้น นั่นคือเมื่อคุณควรใช้ภาพรูปแบบภาพเช่น GIF , PNG , JPEG , หรือหนึ่งในรูปแบบใหม่ เช่น jpeg-xr และ WebGL .ความสูงของภาพไม่ต้องสวย คุณสมบัติเดียวกันของการแก้ไขหรือซูมอิสระ - เมื่อคุณขยายภาพภาพที่คุณจะเห็นเป็นหยักและกราฟิกที่พร่ามัว เป็นผลให้ , คุณอาจต้องการที่จะบันทึกหลายรุ่นของภาพภาพที่ความละเอียดต่าง ๆ เพื่อมอบประสบการณ์ที่เหมาะสมให้กับผู้ใช้ของคุณ
การแปล กรุณารอสักครู่..
