drpentode / attachment-on-the-fly Goto Github PK
View Code? Open in Web Editor NEWA Paperclip mix-in to dynamically generate re-sized photos
A Paperclip mix-in to dynamically generate re-sized photos
When the record is destroyed in the database it leaves the new image generated there.
Will you upgrade your gem to be compatible with rails 4?
This Gem does not support Windows systems although Paperclip does. I have forked the project on https://github.com/plowdawg/Attachment-on-the-Fly to allow a Windows variant (though it may be unstable), however I am fairly sure it looses *nix compatibility.
Application raises 'Execution of convert failed. Please set path in Paperclip.options[:command_path] or ensure that filepermissions are correct' on files like 'Ball).jpg'
if symbol.to_s.match(/^s_[0-9]+_[0-9]+/) || symbol.to_s.match(/^cls_[0-9]+_[0-9]+/)
values = symbol.to_s.split("_")
height = values[1]
width = values[2]
image_name = generate_image("both", height.to_i, width.to_i)
should be
if symbol.to_s.match(/^s_[0-9]+_[0-9]+/) || symbol.to_s.match(/^cls_[0-9]+_[0-9]+/)
values = symbol.to_s.split("_")
width = values[1]
height = values[2]
image_name = generate_image("both", height.to_i, width.to_i)
All attachments must be named "attachment" on the model. Not very flexible, and not my intent.
Create a way to configure convert string either through an initializer or other method.
method_missing should return a path the developer can use to display an image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.