Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Generate image previews (thumbnails) in Ruby. Note: this is a fork/copy and rework/modernization of the original kelredd-pruview gem: https://github.com/kellyredding/pruview.
require 'pruview'
# Thumbnail an image (using image magick)
src_img_file = '/path/to/src/file'
dest_root_dir = '/path/to/dest'
file_name = 'my_thumb'
px_width = 600
px_height = 400
src_img = Pruview::Document.new(src_img_file, dest_root_dir)
dest_img_path = src_img.to_jpg(file_name, px_width, px_height)
# Thumbnail a video frame
# - ffmpeg to get a frame image from the movie
# - then image magick to resize that frame image
src_vid_file = '/path/to/src/video'
dest_root_dir = '/path/to/dest'
file_name = 'my_video_thumb'
px_width = 600
px_height = 400
vid_img_path = Pruview::VideoImage.to_jpg(src_vid_file, dest_root_dir, file_name)
vid_img = Pruview::Document.new(vid_img_path, dest_root_dir)
dest_vid_img_path = vid_img.to_jpg(file_name, px_width, px_height)
Add this line to your application's Gemfile:
gem 'pruview'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pruview
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that pruview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.