Posts tagged 〝thumbnails〞

Helper functions - Resize images to a variable thumbnail size

February 1st, 2012 at 4:27 pm

A short JavaScript resize() helper that scales any image to fit a thumbnail and returns width, height and offsets, ready for drawing on HTML5 canvas.


    • Chris Heilmann
    • About
    • Archives
    • Search
    • Christian Heilmann on LinkedIn
    • Codepo8 on GitHub
    • Chris Heilmann on BlueSky
    • Chris Heilmann on Mastodon
    • Codepo8 on Twitter
    • Chris Heilmann on YouTube

    My other work:

    • Podcast "Coffee with Developers"
    • Newsletter "WeAreDevelopers DevDigest"

    Books:

    • The Developer Advocacy Handbook Showing how the book looks reading it in a browser
      • Buy it on Amazon
      • Buy it on Leanpub
    • My other books on Amazon

    Courses:

    Skillshare Classes:

    • Tools and Tips to Optimize Your Workflow as a Developer
    • Tools for Improving Product Accessibility
    • The JavaScript Toolkit: Write Cleaner, Faster & Better Code
    • Demystifying Artificial Intelligence: Understanding Machine Learning

    LinkedIn Learning Classes (German):

    • Barrierefreie Webseiten planen und entwickeln
    • Browser-Entwicklerwerkzeuge effektiv nutzen
    Christian Heilmann is the blog of chris@christianheilmann.com living and working in Berlin, Germany.
    RSS Feed