Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4098546
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:18:58+00:00 2026-05-20T20:18:58+00:00

I need to have an image render with nearest-neighbor resizing and not the bicubic

  • 0

I need to have an image render with nearest-neighbor resizing and not the bicubic way that is currently used. I currently use the following:

ms-interpolation-mode: nearest-neighbor;
image-rendering: -moz-crisp-edges;

This works in IE and Firefox, but not in Chrome and Safari. Are there any webkit alternatives or any other way to achieve this effect?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:18:59+00:00Added an answer on May 20, 2026 at 8:18 pm

    Edit: It’s now possible with image-rendering: -webkit-optimize-contrast;.

    https://developer.mozilla.org/en-US/docs/CSS/image-rendering#Examples

    This doesn’t work in current versions of Chrome, here are some useful links:

    • http://vaughnroyko.com/state-of-nearest-neighbor-interpolation-in-canvas/
    • Image scaling by CSS: is there a webkit alternative for -moz-crisp-edges?

    I didn’t think there was a way.

    And some quick Googling all but confirms it; the top Google result for webkit image interpolation is:

    http://code.google.com/p/chromium/issues/detail?id=1502

    Reported in September 2008, and still not resolved.

    Also: https://bugs.webkit.org/show_bug.cgi?id=40881


    If I needed this, I’d probably write a PHP script to dynamically scale images up using nearest neighbour.

    This will work in every browser, but then you have all that extra processing and transfer overhead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image that I have in my bundle resources that I need
So here's my issue. I have an image that I need to shrink. The
I have an image thumbnail, encoded as base64, that I want to use as
is there a way to render ViewResult or PartialViewResult as an image? I have
I have a table of canvas elements that emulates tiled image. I need to
I have an image with rounded corners. I need to stretch the image without
I have an image in a repeater in ASP.NET. I need to set the
I have an image with transparence background, for example image . I need to
Hello i am in desperate need of help on this i have an image
I have a binary image with contour lines and need to purify each contour

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.