As a Software Engineer, I’m always looking for ways to make my workflow more efficient and productive. One tool that I recently created is the Unsplash Image Resizer.
When I first started working on this tool, I discovered the HTML download attribute for the a tag.
The download attribute allows users to download a file directly from the browser instead of opening it in a new tab or window. It’s incredibly useful for things like images, PDFs, and other downloadable files.
To use the download attribute, all you have to do is add it to the a tag in your HTML code, along with the filename that you want to give the downloaded file. For example:
In this code, “image.jpg” is the URL of the image that you want to download, and “myexampleimage.jpg” is the filename that will be used for the downloaded file. When the user clicks on the link, the file will be downloaded directly to their computer with the specified filename.
Note that If you’re experiencing an issue where the browser is opening the image instead of downloading it, it’s possible that the browser you’re using doesn’t support the download attribute for image files.
Newsletter #6 - Pegasus, Ruby, PostgreSQL and networkQuality tool
According to Google's Material Design, keep paragraph spacing in the range between .75x and 1.25x of the type size.
Comparison between `TransferUtility.DownloadAsync`, `DownloadSingleFileAsync`, and `GetObjectAsync`.
Effortlessly locate duplicate files content in Linux using 'fdupes' command.
My note about Broken Pipe error