https://github.com/asg017/sqlite-image
https://github.com/asg017/sqlite-image
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/asg017/sqlite-image
- Owner: asg017
- Created: 2022-11-04T18:36:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T23:26:27.000Z (about 2 years ago)
- Last Synced: 2025-02-26T17:45:51.414Z (2 months ago)
- Language: Rust
- Size: 345 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sqlite-img
A work-in-progress SQLite extension for converting, resizing, and manipulating images! Not meant to be widely shared.
Once it's ready, you'll be able to do things like:
```sql
.load ./img0-- resize image_0001.jpg to 200x200, then write to thumbnail.jpg
select writefile(
'thumbnail.jpg',
img_resize(
readfile('image_0001.jpg'),
'200x200'
)
);-- rotate image_0001.jpg 90 degrees and write to rotated.jpg
select writefile(
'rotated.jpg',
img_rotate90(readfile('image_0001.jpg'))
);-- convert image_0001.jpg and write to image_0001.png
select writefile(
'image_0001.png',
img_as_png(readfile('image_0001.jpg'))
);
```