惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
B
Blog RSS Feed
小众软件
小众软件
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
WordPress大学
WordPress大学
月光博客
月光博客
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
量子位
V
Visual Studio Blog
罗磊的独立博客
Last Week in AI
Last Week in AI
The Cloudflare Blog
H
Help Net Security
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队

Josh Collinsworth

In defense of two-state theme toggles LLMs and performative productivity Man Cereal My review of the Nüborn Baby at 3 months 2025 Year in Review AI optimism is a class privilege Alchemy Titles matter The blissful zen of a good side project Goodbye, Griff. You were a good boy. Rare words in common phrases, and how to avoid getting them wrong Things I enjoyed in 2024 The childlike and the childish A response to "Defending Open Source: Protecting the Future of WordPress" If WordPress is to survive, Matt Mullenweg must be removed For whatever it's worth: my advice on job hunting in tech A decade of code Follow-up: the Glove80 after six months The quiet, pervasive devaluation of frontend I worry our Copilot is leaving some passengers behind Things I enjoyed in 2023 First impressions of the MoErgo Glove80 ergonomic keyboard A message from the Captain of the S.S. Layoff Things you forgot (or never knew) because of React Alfred vs. Raycast: my constant debate Adding page transitions in SvelteKit Ten tips for better CSS transitions and animations Understanding easing and cubic-bezier curves in CSS Impressions of the ZSA Moonlander at one month Why you should never use px to set font-size in CSS
Understanding the Difference Between Image and Vector Fil...
2015-06-11 · via Josh Collinsworth

Published: June 11, 2015
Last updated: January 19, 2021

If you’re like me, you’ve probably spent some time wondering (and Googling) about the differences between various popular format types commonly used for graphic design applications. I’ve found out I used or exported the wrong kind more times than I care to admit, and I’ve asked or been asked the difference between a jpeg and a tiff on countless occasions. Even now it’s difficult sometimes to remember whether certain file types support things like CMYK color or transparency, and so I decided I’d create a resource that’s hopefully a handy reference on the matter of discerning file type supports and behavior.

FormatSpotCMYKRGBVectorTransparencyCompressionMax Colors
.epsYesYesYesYesYesNoneN/A
.gifNoNoYesNoYesNone256
.jpgNoYesYesNoNoLossyMillions
.pdfYesYesYesYesYesOptionalN/A
.pngNoNoYesNoYesLossless256 or milliions
.svgNoNoYesYesYesOptionalN/A
.tifNoYesYesNoYesLossy or LosslessMillions
.wmfNoNoYesYesYesOptionalMillions

A few notes about the chart and its summary:

  • .jpg tends to be the best format for a photo or image with many colors where image size is a concern (especially on the web).
  • .tiff is the ideal format for photo and raster applications where quality is the priority.
  • .tiffs and .jpgs each support both RGB and CMYK, but this does not mean that a single tiff or jpeg file can be used for either application. In other words, .tiffs and .jpgs can exist as either CMYK or RGB files, but not both at the same time.
  • .png is ideal for transparent raster images on the web or for web images with a low number of colors where compression may degrade quality (e.g., logos at fixed sizes or illustrations with large areas of flat color).
  • .svg files (as their name implies) are designed for getting vectors to function and render on the web, as well as dynamic web animation. Ideal for logos on the web and other images that may need to display well at multiple sizes.
  • .eps and .pdf have mostly the same functionality, and if you have the right software at your disposal they’re largely interchangeable. However, .pdf is much more universal. This makes .eps a great choice for embedding or editing individual images (though .pdf also works for this purpose) and pdf better for outputting content for the end user to view or read. Regardless, they’re both pretty much your only option for Pantone/spot colors, outside of Adobe’s native file formats (.ai, .indd, etcetera). For more on that topic, see my post Pantone®, Color, and What I Wish I Had Known.
  • .gifs are still out there, but aside from animation, there’s nothing a .gif can do that a .png can’t do as well or better.
  • If you don’t know this already, if there’s an X in the CMYK column above, don’t use that format for print (unless you’re printing a screenshot for some reason).
  • You may have noticed that .jpg is the only format above not capable of supporting transparency. Don’t waste your time trying to create a clear .jpg (or exporting an all-white Photoshop document as a .jpg without inserting a dark background first).
  • Not shown in the chart but important: screens have a native resolution of 72 dpi, while print has a native resolution of 300 dpi. Thus, an image that’s 1800 pixels wide in web resolution will likely be larger than your screen can display at full size, but will only be five inches wide at print resolution. Keep this in mind when working with raster files.
  • It’s increasingly rare (thankfully) that a client would request a .wmf; I just included it on this chart in case it happens.

If you have any questions or comments, please let me know!