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

146
Views
Is there a method to enlarge/upscale image without increasing the pixel thickness of the edge

I have a image need to upscale, I use sharp(node.js) to execute this action. the pixel count of the original image edge in a line of the vertical direction is about 3, after upscaling by 4 times, the result pixel count is more than 10. how can I keep the pixel thickness of the edge after scaling operation. I tried many methods and failed, the only ideal result is from the webpage service (AI Image Enlarger). can I do this on my local machine? any help would be great appreciated. Below is my code

sharp_resize(`/Users/cc/Desktop/alpha.png`, `/Users/cc/Desktop/alpha_x4.png`)
function sharp_resize(srcPath, targetPath) {

    const dimensions = sizeOf(srcPath)
    let width = dimensions.width
    let height = dimensions.height

    sharp(srcPath)
        .resize(width*4,height*4,{
            kernel: sharp.kernel.lanczos3,
        })
        .toFile(targetPath, (err, info) => { 
            console.log(`sharp resize ${targetPath}`);
        });
}

the upscaling effects

about 4 years ago · Santiago Trujillo
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!