Phashion
RMagick
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Phashion
-
pHash
I've been using this in a Rails app to detect duplicate image uploads for years. It works really well.
-
Legal question – license of software that includes GPL 3.0 software
I am the current maintainer (albeit, not a great one, but still a maintainer) the phashion ruby gem (https://github.com/westonplatter/phashion).
I was notified by a user that the current MIT license of phashion may conflict with the GPL 3.0 license of the pHash software included in it. The argument goes that since phashion includes the source code of pHash as apart of its distribution, it needs to also use the GPL 3.0 license.
My question ... is there a licensing conflict between phashion and pHash? If so, what are the options?
NOTE - I realize I'm asking a legal/IP question. I will not treat comments or opinions as legal advice.
RMagick
-
How to use ImageMagick in AWS Lambda (ruby 2.7) with WebP support
require 'rmagick' include Magick module LambdaFunction class Handler def self.process(event:, context:) image_url = event['image_url'] my_image = ImageList.new(image_url) # TODO: Use rmagick to make your image transformations # Docs: https://rmagick.github.io { "success": true } end end end
-
YOLOv7 object detection in Ruby in 10 minutes
mini_magick is much slower than YOLO. I hear that rmagick is well maintained these days, so you may want to use that.
-
Building a Dot Matrix Animator
To accomplish this project, I knew I would need some way to process the input images. Resizing the images was the easy bit. The more complex (and more important) task was to find the best way to relate a pixel's color in the source image to a dot's size in final animation. I felt that the relative luminance as described in this W3 accessibility document was a logical property to use in this case, and can be easily calculated with a color's RGB components. After determining what tasks I needed to fulfill, I determined that the RMagick library would be a good choice for this project.
- API to create an image (with text/details) and display it
- Is there a gem/way to edit an image with custom text
What are some alternatives?
MiniMagick - mini replacement for RMagick
ruby-vips - Ruby extension for the libvips image processing library.
PSD.rb - Parse Photoshop files in Ruby with ease
IMGKit - Uses wkhtmltoimage to create JPGs and PNGs from HTML
Skeptick - Better ImageMagick for Ruby
Victor - Ruby SVG Image Builder