Photos and Uploads: Size, Crop and Quality
Learn what pixels are, why photos go blurry, which file type suits photos, how to crop to a shape and how many pixels print needs, with real file sizes.
In this lesson you will
- Explain pixels and why photos go soft
- Choose between JPG and PNG
- Crop a photo to a shape
- Work out pixels needed for print
About 20 minutes
Meera’s blurry photo
Meera has a lovely photo of the library’s children’s corner. She drops it onto her post and it looks fine on screen. Then she prints a test copy of the flyer and the photo is soft and blocky. A friend sends her the finished Instagram post and it has strange bands across the sky. Same photo, two different problems. Both come from the same place: a photograph is a grid of tiny coloured dots, and how many dots there are, and how they are stored, decides how it looks. This lesson explains pixels, size, crop and file type in plain terms.
Pixels: the dots in a photo
A photo is made of pixels. A photo that is 3000 pixels wide and 2000 tall has six million of them. When you place it in a design, Canva shows it at whatever size you choose. If the picture has plenty of pixels for that size, it looks sharp. If you stretch it far beyond its pixels, each one is spread over a bigger area and the picture goes soft and blocky. This is the same effect we met in lesson 2.
For a screen design, the rule is simple: the photo should have at least as many pixels as it takes up on the final design. A 1080 pixel wide post needs a photo at least about 1080 pixels wide where it fills the width. Photos from a modern phone are far bigger than that, so on-screen use is rarely a problem. Print is more demanding, as the numbers below show.
File types for photos
- JPG stores photos in a small file by throwing away detail your eye mostly does not miss. You can choose how much, called the quality.
- PNG keeps every pixel exactly and can have see-through areas, but photos in PNG are large.
- Other formats such as the ones many phones use may be accepted by Canva for upload. If a file will not upload, convert it to JPG or PNG first and check Canva’s current list of accepted types and sizes.
The program below makes a photo-like picture of 3000 by 2000 pixels, saves it as PNG and as JPG at three qualities, and then prepares it for a post: shrunk, cropped to the 4:5 shape and saved. It finishes with a print calculation. Everything is real output.
import os, random
from PIL import Image, ImageFilter
random.seed(7)
# build a photo-like test picture: smooth colour fields plus fine noise
small = Image.new("RGB", (30, 20))
small.putdata([(random.randint(40, 220), random.randint(40, 220), random.randint(40, 220)) for _ in range(600)])
photo = small.resize((3000, 2000), Image.BICUBIC).filter(ImageFilter.GaussianBlur(6))
noise = Image.effect_noise((3000, 2000), 18).convert("RGB")
photo = Image.blend(photo, noise, 0.12)
def kb(path):
return os.path.getsize(path) / 1024
photo.save("big.png")
for q in (95, 80, 60):
photo.save(f"big_{q}.jpg", quality=q)
print(f"PNG {kb('big.png'):8.0f} KB")
for q in (95, 80, 60):
print(f"JPG quality {q} {kb(f'big_{q}.jpg'):8.0f} KB")
# shrink to the size a post needs, then crop to 4:5
post = photo.resize((1620, 1080))
left = (1620 - 864) // 2
post = post.crop((left, 0, left + 864, 1080)).resize((1080, 1350))
post.save("post.jpg", quality=85)
print()
print("post size:", post.size, f"{kb('post.jpg'):.0f} KB")
# is 1080 px wide enough to print 10 cm wide?
cm = 10
dpi = 1080 / (cm / 2.54)
print(f"1080 px over {cm} cm: {dpi:.0f} dpi")
print("print goal: about 300 dpi")
print("pixels needed for 300 dpi:", round(cm / 2.54 * 300))
PNG 7757 KB
JPG quality 95 1474 KB
JPG quality 80 420 KB
JPG quality 60 216 KB
post size: (1080, 1350) 107 KB
1080 px over 10 cm: 274 dpi
print goal: about 300 dpi
pixels needed for 300 dpi: 1181
Look at the sizes. The PNG is about 7.6 megabytes. The same picture as a JPG at quality 95 is 1474 KB, at 80 it is 420 KB, and at 60 only 216 KB. That is a huge saving for a small loss. The finished 1080 by 1350 post is only 107 KB. Real photos compress differently from this test picture, but the pattern holds: JPG is the right choice for photos, and the lower the quality, the smaller the file and the more detail is lost. Very low quality shows blocky patches, so for something Meera cares about, a middle setting is wise.
Cropping to fit
The post program does a crop: it cuts away the edges to change the shape. A 3:2 photo is wider than a 4:5 post, so the program shrinks the photo first and then cuts equal strips from the left and right. In Canva you do the same with the crop tool: select the photo, choose crop, drag the handles or move the picture inside its frame, and press done. Placing a photo into a frame does the cropping for you, and you can slide the picture around inside the frame to choose what stays in view.
Think about what must stay in the picture before you crop. Faces and the main subject should never touch the edge. If the photo has important things at the sides, a different shape of frame may be better than cutting them off.
When a design that contains cropped photos is exported to PDF, Canva’s help says the PDF can keep the original uncropped image. Someone with a PDF editor could get the full picture back. If part of a photo is private, remove that part from the photo itself before you design with it.
Will it print sharply?
Printing needs more pixels, because printers lay dots much closer together than screens do. A common goal is about 300 dots per inch. The last lines of the program show the result for a photo 10 cm wide: if you had only 1080 pixels across, you would get about 274 dots per inch, a little under the goal, and to reach 300 you need about 1181 pixels. This is why a photo that is fine on a phone can be soft on a flyer. For a printed design, start from the biggest, original version of the photo and avoid downloading small copies from social media.
Using a screenshot or a picture saved from social media for a printed flyer. These are usually small and already compressed. Use the original from the camera or phone, which has many more pixels.
Practice for this lesson
Some Canva photo tools, such as removing a background, may depend on your plan. If you do not see one, check before you plan your design around it.
Check what you learned
Five quick questions. Pick an answer and you will see straight away whether it is right and why.
What is a pixel?
- A kind of font
- A page size
- One tiny dot of a picture
- A colour name
A picture is a grid of tiny dots, and each dot is a pixel.
What happens if you stretch a photo far beyond its pixels?
- It goes soft and blocky
- It gets sharper
- It turns black and white
- It is cropped
The same pixels are spread over a larger area, so detail is lost.
Which file type is usually best for photos?
- A text file
- A font file
- JPG
- None
JPG makes small files for photos by discarding detail you rarely notice.
What is cropping?
- Cutting away edges to change the shape
- Adding a border
- Changing colours
- Making it larger
Crop removes the edges of a picture so it fits a new shape.
About how many dots per inch is a common print goal?
- 3
- 300
- 30000
- 1
Around 300 dots per inch gives a sharp printed photo.
Summary
- A photo is a grid of pixels, and stretching it past its pixels makes it soft.
- JPG suits photos, and lower quality means smaller files with less detail.
- Crop to fit a shape and keep faces away from edges.
- Print needs about 300 dots per inch, so use original photos.
Questions
Why is my photo blurry in the design?
It probably has too few pixels for the size you gave it. Use a bigger original, or make it smaller in the design.
Should I upload JPG or PNG photos?
JPG is usually right for photos because the file is much smaller. Use PNG for graphics that need see-through areas or sharp edges.
Does cropping delete the rest of the photo?
Not necessarily. In many tools the hidden part can be brought back inside the design, and a PDF export may even keep it. Remove private parts from the photo itself.
