Search found 4 matches

by railsguy
2017-05-21T12:14:41-07:00
Forum: Users
Topic: I want to trim whitespace while keeping original width/height
Replies: 6
Views: 6819

Re: I want to trim whitespace while keeping original width/height

this can be done with only a few simple lines of code using carrierwave/minimagick - very nice.
by railsguy
2017-05-21T12:08:12-07:00
Forum: Users
Topic: I want to trim whitespace while keeping original width/height
Replies: 6
Views: 6819

Re: I want to trim whitespace while keeping original width/height

Thanks. I was able to figure it out and able to get it to work inside the rails uploader.

Hmm.. I just installed it using

sudo apt-get update
sudo apt-get install imagemagick
by railsguy
2017-05-21T11:36:16-07:00
Forum: Users
Topic: I want to trim whitespace while keeping original width/height
Replies: 6
Views: 6819

Re: I want to trim whitespace while keeping original width/height

Now I am getting http://i68.tinypic.com/21ex7kj.jpg I am using RubyonRails mini_magick gem with Carrierwave Version: ImageMagick 6.7.7-10 2016-06-01 Q16 http://www.imagemagick.org ubuntu I am trying to write this code in ruby from the uploader. all i need now is to get gravity center to work.
by railsguy
2017-05-21T10:59:51-07:00
Forum: Users
Topic: I want to trim whitespace while keeping original width/height
Replies: 6
Views: 6819

I want to trim whitespace while keeping original width/height

So if I start with an image that looks like this: http://i67.tinypic.com/so8efd.jpg what i want to do is to trim out as much whitespace as possible but i want to maintain the aspect ratio and i want the photos width/height to stay the same... so there might still be some whitespace at the end. I ...