
When designing with high-quality images, Sketch files can get HUGE.
Sketch stores all image assets in the sketch file, so every placed image increases the Sketch file’s size on disk. Additionally, images are stored using lossless compression, which is not nearly as efficient as JPEG, so placed images may take up 5x more disk space than their originals. (this seems kind of dumb, why not just store the originals, in their original format?) Sketch files are otherwise zip-compressed, so aside from placed images, they should be very small.
Sketch has a Reduce File Size option in the File menu, but it’s not perfect. The danger, besides being irreversible, is that images seem to scale to 1x their largest placed size. This means @2x or @3x exports will scale up and image quality will be degraded and mushy. Likewise, if an image needs to be scaled up as part of a design revision, image data won’t be available to do so cleanly.
An easy workaround is to convert all placed images to symbols — then to scale down the image-symbol instance. This lets us set reasonable maximum sizes (eg. 2000px instead of 8000px) and use Reduce File Size without compromising image quality.
Photo by Ronald Yang on Unsplash