4 ms·
Show HN: FastResize – A Fast Image Resizer Supporting Batch Processing
I'd like to share FastResize (https://github.com/tranhuucanh/fast_resize https://github.com/tranhuucanh/fast_resize), a high-performance image resizing library written in C++. This is my second open-source project after FastQR, and I'm excited to share it with you all.
What it is:
- A fast CLI tool and Ruby gem for resizing images
- Written in C++ with Ruby bindings
- Supports batch processing for handling thousands of images efficiently
- Pre-built binaries included – no need to install dependencies separately
- Available as a Ruby gem on RubyGems: https://rubygems.org/gems/fast_resize https://rubygems.org/gems/fast_resize
Why I built this:
- I needed an image resizer that was fast, memory-efficient, and could handle batch processing easily. Most existing solutions were either slow or consumed too much memory when processing large batches.
Performance:
- Resizing 1,000 images: ~2 seconds
- Up to 2.9x faster than libvips
- Up to 3.1x faster than imageflow
- Uses 3-4x less RAM than alternatives
Tech stack:
- C++ core using optimized image processing libraries
- Ruby gem for easy integration
- Precompiled binaries for CLI usage
Installation:
- Ruby gem: `gem install fast_resize` or add `gem 'fast_resize'` to your Gemfile
- CLI: Please check from GitHub repository: https://github.com/tranhuucanh/fast_resize https://github.com/tranhuucanh/fast_resize
This is my second open-source project, so I'm sure there are things that could be improved or bugs I haven't caught yet. I'd really appreciate it if you could try it out and share your feedback. If you find any issues or have suggestions, please open an issue on GitHub – I'll do my best to fix them quickly.
Any feedback, criticism, or suggestions would be greatly appreciated. Thanks for taking the time to check it out!
GitHub: https://github.com/tranhuucanh/fast_resize https://github.com/tranhuucanh/fast_resize
RubyGems: https://rubygems.org/gems/fast_resize https://rubygems.org/gems/fast_resize