Makers Army
Articles

Wall Art

Make a Crooked Artwork Photo Square Again

Correct four corners of an angled artwork image and inspect what a perspective transform can and cannot fix.

By Sam 10 November 2026
Digitally corrected historical ceiling design
Actual digital correction of a simulated skew, based on a public-domain museum image.

Make a Crooked Artwork Photo Square Again

You've photographed a drawing from an angle and now the top edge is shorter than the bottom. The artwork hasn't changed shape; the camera was looking at it from the side. Annoying, especially when you want a clean record for a portfolio or a maker listing.

You can correct that sloping rectangle by identifying its four corners and remapping them into a flat rectangle. We made a controlled digital example using a public-domain decorative ceiling design from The Metropolitan Museum of Art. First we deliberately skewed a copy; then we corrected it with OpenCV. The skewed input is a simulation, not a photograph we took of the original artwork.

The result is useful for a flat drawing or print. It won't magically recover missing detail, undo glare or make a curved object flat.

Before you start

You'll need a photo of a flat artwork, label or page that you own or are allowed to use. The four corners should all be visible. You can ask ChatGPT to help process the image if your account has image upload and data analysis with file creation. If not, a photo editor with a perspective-correction tool can do the same type of job.

Our local test used OpenCV on an image that was digitally warped with known corners. That makes the result easy to compare, but it's kinder than a real phone photo with shadows and lens distortion. We haven't tested a specific mobile editing app for this example.

1. Start with the whole page in frame

The original artwork deliberately warped into a simulated angled view

A digital simulation made from the Met's public-domain ceiling-design image. It is not a camera photograph of the historical artwork.

When taking your own photo, put the artwork on a flat surface. Move around until the full page and all four corners are visible. Avoid strong reflections, deep shadows and a hand covering the border. The better the starting photo, the less you'll need to repair later.

Don't crop tight to the design yet. Leave a little room outside the corners so you can select the paper edge accurately. If the artwork itself runs right to the edge, don't cut off the interesting part while trying to make the frame look neat.

Our sample uses a historical design by Jules-Edmond-Charles Lachaise and Eugène-Pierre Gourdet, made available as public-domain material by The Met. We used the museum's image as the real input, then created the angled view digitally.

2. Identify four corners in order

The four actual corner positions selected in the simulated skewed image

The yellow points mark the four corners used in our digital test. They are an annotation of the example, not a screenshot of an editing app.

Find the top-left, top-right, bottom-right and bottom-left corners of the flat page. Follow that same order all the way through. If the points cross over or one is assigned to the wrong corner, the output can twist itself into something that looks like a very confused flag.

Use the paper corners, not a shadow beside the paper. For a photograph of a framed picture, decide whether you want the outside of the frame or the artwork inside it; those are two different rectangles.

If an edge is hidden, make your best manual selection only if you have enough information and label the result accordingly. A tool cannot know the exact corner hidden under a coffee mug. A second, clearer photo is usually the better fix.

3. Ask for a correction that preserves the art

Open ChatGPT and start a new conversation. Attach a copy of the image using the plus or attachment control near the message box. If the app can't accept the image or run code, use the perspective tool in an image editor instead.

Try this prompt:

Help me straighten the flat artwork in my attached photograph.

Use the actual pixels in the photo. Identify or ask me to identify the
four page corners in this order: top left, top right, bottom right,
bottom left. Apply a perspective transform to map those corners to a
rectangle, keeping the artwork intact. Show the selected points before
you process it and ask for a correction if a corner is uncertain.

Keep the original colours and proportions as closely as practical.
Don't redraw, invent, sharpen away, or remove details. Save a copy of
the corrected image and show a before-and-after comparison. Tell me
about glare, blur, hidden corners or other damage the transform can't
fix. If you can't run the transform or return a file, say so.

If your tool can show coordinates, check them. Our simulated input used four known points, then mapped them back to a 1,000 × 700 pixel rectangle. We used OpenCV's perspective transform locally; the result below is the actual output of that run.

The right output shape matters. If your original page is A4, square or another known size, say so. A transform can turn any four points into almost any rectangle, including a beautifully straight but badly stretched one.

4. Inspect the actual result

The corrected rectangular image after the digital perspective transform

The actual corrected output from our controlled digital test. The source artwork is public domain; the correction does not add missing details.

Look for straight opposite edges and recognisable proportions. Do circles still look approximately circular? Have faces, letters or repeating patterns become unnaturally wide? If so, check both the corner positions and the intended aspect ratio.

In our example the corners were known because we created the distortion. Real photographs are less forgiving. The page might curl, the lens might bend straight lines or a shadow might make a corner hard to pick. Moving one point slightly can change the whole output.

The transform resamples pixels as it moves them. You may see a little softness, particularly if a corner of the original was tiny. Start with a reasonably sharp photo, and don't claim a corrected image contains more genuine detail than the camera captured.

5. Compare the before and after

Side-by-side simulated skew and the actual corrected artwork

Left: our deliberately skewed digital input. Right: the actual corrected output. Neither is presented as a physical camera test.

Open both files at a similar size. Check the edges, centre and all four corners. The corrected version should make the page easier to inspect without changing the design itself. If the border is cut off, move the selected corner outward or leave a little more margin in the original crop.

Don't confuse perspective correction with restoration. It won't remove glare over paint, bring back a blurred signature or prove the true colour of an old object. An assistant that fills those areas in is creating an interpretation. Keep that separate from a faithful record of the artwork.

Save a copy you can trust

Save the corrected image with a new filename and keep the original photo. For a website, export a suitably sized JPEG or PNG; for print, retain a higher-resolution copy and check the final dimensions. If colour accuracy matters, compare with the actual object and your own colour-managed workflow.

For the next piece, take one careful picture, mark four corners, then compare the result against the original. That's usually enough to turn a wonky record into something far easier to use, without pretending the computer has become an art restorer.

Source: Lachaise and Gourdet, Design for a Painted Ceiling, The Metropolitan Museum of Art, public domain. The simulated perspective and correction were made for this tutorial.

Sources

  1. 1.The Met source image and rights
  2. 2.OpenCV image transformations
  3. 3.OpenAI: data analysis in ChatGPT

Share this article

Know someone who would enjoy this? Pass it along.