top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Compressing the original image stored by Paperclip in Rails Application?

+1 vote
431 views

I am trying to compress the original image stored by paperclip using smusher on my local machine but I am getting this (getaddrinfo: Name or service not known (ypoweb-01.experf.gq1.yahoo.com:80).
I want to know the proper way of how to compress the paperclip original images using smusher or punypng or is there any other way to compress those images.

posted May 16, 2016 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Hope you understand the "getaddrinfo:..."

Similar Questions
+1 vote

When running capybara feature specs I can see lots of Slow factory notices which are populated byfactory_girl. These Slow factory things heavy slow down the feature specs, I think, even feature specs are intrinsic slow specs. Then I had some inspect and found out most of the Slow factory was caused bypaperclip. We had model using paperclip here:

FactoryGirl.define do 
  factory :asset do 
    image Rails.root.join('spec/fixtures/sample.jpg').open 
  end 
end

So I wonder if there's a way like test mode for paperclip to speed up tests. I have simple solution here: Just copy the original file instead of actually crop it.

0 votes

What is the best method to manage image uploads in Rails? Is there a tool that allows auto-resizing upon image upload based on predefined dimensions? Moreover, is there any tool available that makes it possible to render / regenerate the same originally uploaded image using alternative view based styles, e.g. thumbs, 320x200 or 640x480 etc..?

0 votes

I need to upload multiple image upload at a time in my application. I searched and got the carrierwave gem as a solution, but I find that only one image at a time.but i need to upload multiple images at a time using single the button uploadimage. How can I overcome this problem.

+1 vote

Can anyone help me to run a rails application in a LAMP or WAMP server?

+2 votes

Users of my system will be uploading an excel spreadsheet. The issue is should I just read straight from this excel spreadsheet into my front-end or should I load this spreadsheet into my MySQL database and then to my front-end.

I have asked numerous people about this issue and have researched on-line to no avail.

...