Ben Santora - October 2024

","image":"http://www.luping.net/uploads/20241118/1731911408673adef0b95b3.jpg","datePublished":"2024-11-18T15:30:38+08:00","dateModified":"2024-11-18T15:30:38+08:00","author":{"@type":"Person","name":"luping.net","url":"https://www.luping.net/articlelist/0_1.html"}}
"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Simple Image Viewer in JavaScript

Simple Image Viewer in JavaScript

Published on 2024-11-18
Browse:759

Simple Image Viewer in JavaScript

This is a very simple image viewer that runs in the web browser. It uses a single .html file and 36 lines of code. Save the code as index.html - clicking on this file will open a window in your browser allowing you to choose an image from your pc to display. I've been able to open a 1024 x 1024 image - nice.

Here's the code:



    Simple Image Viewer

Simple Image Viewer

Your image will appear here.

Ben Santora - October 2024

Release Statement This article is reproduced at: https://dev.to/benslinux2024/simple-image-viewer-in-javascript-3ge4?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3