Comments on: Resize and Compress Images in HTML CSS & JavaScript https://www.codingnepalweb.com/resize-and-compress-images-javascript/ CodingNepal is a blog dedicated to providing valuable and informative content about web development technologies such as HTML, CSS, JavaScript, and PHP. Thu, 09 Mar 2023 21:59:01 +0000 hourly 1 https://wordpress.org/?v=6.4.2 By: Sensejus https://www.codingnepalweb.com/resize-and-compress-images-javascript/#comment-22015 Thu, 09 Mar 2023 21:59:01 +0000 https://www.codingnepalweb.com/?p=3035#comment-22015 In reply to pv01.

This code does not use any algorithm for image resizing. It uses the HTML5 Canvas API to create a new canvas element with the desired width and height, and then draws the original image onto it using the drawImage() method. It also provides options to adjust the image quality and aspect ratio. Finally, it generates a download link for the resized image using the toDataURL() method of the canvas element.

]]>
By: Mukesh Patel https://www.codingnepalweb.com/resize-and-compress-images-javascript/#comment-21491 Sun, 05 Mar 2023 15:25:18 +0000 https://www.codingnepalweb.com/?p=3035#comment-21491 There is an issue with the code. It always gives PNG output even I upload JPG images. Can you please provide code that gives the same result as the same input format?

]]>
By: CodingNepal https://www.codingnepalweb.com/resize-and-compress-images-javascript/#comment-14738 Wed, 28 Dec 2022 16:32:14 +0000 https://www.codingnepalweb.com/?p=3035#comment-14738 In reply to pv01.

Please read the blog and the given codes.

]]>
By: pv01 https://www.codingnepalweb.com/resize-and-compress-images-javascript/#comment-13235 Mon, 21 Nov 2022 18:26:17 +0000 https://www.codingnepalweb.com/?p=3035#comment-13235 which algorithm is used to create this image image resizer

]]>