Exporting Assets: 1x & 2x JPEG
Master JPEG Export Optimization in Sketch
Key Skills You'll Master
JPEG Optimization
Learn to balance file size and image quality for web performance. Master different compression settings for 1x and 2x exports.
Asset Export Workflow
Develop an efficient process for exporting multiple image formats and resolutions from Sketch for web development.
Transparency Handling
Understand how to work with transparency limitations in JPEG format and create optimal solutions for circular images.
Export Process Overview
Select Assets
Choose the three photos from Rate What You Ate and Start Remembering Now sections that need to be exported
Configure Export Settings
Set up both 1x and 2x JPEG export formats with proper quality settings for each resolution
Export and Optimize
Export assets twice with different quality settings, then merge the optimized files for best results
Asset Selection Checklist
This is the first of three photos that need JPEG export optimization
Maintaining selection allows batch export settings configuration
All three photos will share the same export settings for consistency
Confirms proper selection of Ratings-bg, Iphone-isometric-view, and Call-to-action-bg
2x images occupy the same webpage space as 1x images, making their pixels effectively half the size. This means compression artifacts are smaller and less visible, allowing for more aggressive compression without quality loss.
1x vs 2x JPEG Quality Settings
| Feature | 1x Export | 2x Export |
|---|---|---|
| JPEG Quality | 60% | 35% |
| Visual Impact | Standard quality needed | Artifacts less visible |
| File Size Priority | Moderate compression | Aggressive compression |
Use separate folders for 1x and 2x quality exports to maintain organization during the optimization process. This prevents confusion when merging the final optimized assets.
File Size Optimization Results
Asset Merging Process
Compare File Sizes
Use Finder's List view to compare the file sizes between 1x and 2x quality folders
Move Optimized 2x Files
Select all @2x files from the 2x Quality folder and drag them to replace the larger versions in 1x Quality folder
Clean Up and Organize
Delete over-compressed files and move final assets to the parent assets-for-developer folder
The current workflow of dual exports exists because Sketch applies the same JPEG quality to all export sizes. This feature request for separate quality settings per export size would streamline the optimization process significantly.
Key Takeaways



