Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
How to crop images in irregular shapes/polygons?

I'm trying to crop an image by coordinates, in an irregular shape. I do have the following polygon of coordinates where I have to draw a line and cut and keep only this polygon from the image.

These are the cooridnates (inside a canvas, starting clockwise)

"polygon": [
   [0.152, 0.416],
   [0.16, 0.186],
   [0.172, 0.02],
   [0.211, 0.006],
   [0.357, 0.006],
   [0.592, 0.006],
   [0.656, 0.023],
   [0.775, 0.043],
   [0.789, 0.055],
   [0.756, 0.549],
   [0.756, 0.637],
   [0.736, 0.955],
   [0.719, 0.994],
   [0.607, 0.996],
   [0.197, 0.996],
   [0.131, 0.994],
   [0.123, 0.982],
   [0.125, 0.855],
   [0.139, 0.668],
   [0.139, 0.584]
],

What would be the best way/approach or tool to do this kind of job?

Inputs: image + coordinates of a polygon inside this image Output: the polygon inside the image (or transparent/paint white the rest of the pixels that are not included inside the polygon)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!