Rotating and Flipping Images in React and Saving with Canvas
I built a React component that rotates a selected image in 90° steps, flips it horizontally or vertically, and saves ...
Generate Video Thumbnails in the Browser Before Upload with React
How to create a JPEG thumbnail in the browser from a video file the user selects. Seek a hidden video element, draw i ...
“React: Show an Unread Count in the Tab Title and Favicon”
“When there are 3 unread items, the tab shows `(3) 猫のメモ` and the count is drawn on the favicon. I built this wi ...
How to Page Through a PDF with PDF.js and React
Draw a PDF loaded with PDF.js onto a canvas one page at a time in React, with previous and next buttons. When paging ...
How to Draw an Audio File’s Waveform in React
How to draw the waveform of an audio file the user selects onto a canvas without a library. Decode the file into a se ...
Resize and Preview Images Before Upload in React
I tested how to resize a selected image in the browser and preview it before sending, using React and TypeScript. Thi ...
