Sub topic 3
Fit social media size and format requirements
Social platforms resize, crop, and recompress uploads, so exporting at the size and format each platform expects reduces that damage. This chapter assumes you know Photoshop layers, artboards, and the Export As dialog. The verification step needs Python 3 with Pillow installed (pip install pillow).
Match the platform specification
Platform sizes and recommended file types change, so check each platform's current help pages before you export. Then set the canvas to match. When you scale down, use Image > Image Size with Resample set to Bicubic Smoother. Keep the color profile at sRGB, as described in the previous chapter.
Export 1x, 2x, and 3x versions for high-density screens
A 1x image looks soft on high-density screens. Export a 2x copy of the same image so the screen has enough pixels to draw. In File > Generate > Image Assets, a layer named 200% badge.png exports at 200% of its size, and 300x300 avatar.jpg exports at exactly 300 by 300 pixels.
Export layers and artboards as separate assets
Generate Image Assets also exports each layer or artboard as its own file. A layer named hero.jpg90% produces a JPEG at quality 90. Name each layer for its final file, because the layer name becomes the file name.
Know when Save for Web (Legacy) still helps
Export As is the current choice for most work. Save for Web (Legacy) still offers a detailed side-by-side preview of quality and file size. Use it when you must match an older workflow or need to fine-tune compression against a preview.
Automate batch exports
File > Scripts > Image Processor converts a folder of files to chosen formats and sizes. It can also run a recorded action on every file. Record an action once for steps such as resizing and sharpening, then run it across the whole folder.
Check the exported files before publishing
Run this script on the export folder. It prints each file's pixel size, color mode, and whether it has an embedded ICC color profile.
from PIL import Image
import os
folder = "exports"
for name in sorted(os.listdir(folder)):
if not name.lower().endswith((".jpg", ".jpeg", ".png")):
continue
with Image.open(os.path.join(folder, name)) as img:
has_icc = "yes" if img.info.get("icc_profile") else "no"
print(f"{name}: {img.width}x{img.height}, mode={img.mode}, icc={has_icc}")| Check | Expected result |
|---|---|
| Pixel size | Matches the platform specification |
| Color profile | icc=yes for sRGB output |
| Transparency | Mode is RGB for JPEG, RGBA only where needed in PNG |
Exercise
You export a 300x300 avatar.jpg and the script reports mode=RGBA with icc=no. What should you change before publishing?
Show answer
Re-export the file as an RGB JPEG with the sRGB profile embedded, because JPEG cannot store transparency and the profile is missing.