Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6168579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:42:42+00:00 2026-05-23T22:42:42+00:00

I use Paperclip 2.3.11 in my Rails 3 application, and I create thumbnails using:

  • 0

I use Paperclip 2.3.11 in my Rails 3 application, and I create thumbnails using:

:styles => { :thumb => "80x80#" }

However, if the picture is small, say 32x32, it is enlarged to fit thumbnail dimensions.

I would like to fix that by hacking Paperclip.

Unfortunately, I couldn’t find the relevant code that describes #‘s behavior.

Could you please point me to the right place in Paperclip code ?

Or, maybe there is a better solution ? I would like the thumbnails to be 80x80 unless the original picture is too small (in which case the thumbnail should be the same size as the original picture).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:42:43+00:00Added an answer on May 23, 2026 at 10:42 pm

    So, # is an argument used by Paperclip to know whether or not you expect the pic to be cropped.

    It’s written here, through the crop? method, itself looking at geometry[-1,1]: basically the last character of the style you enter.

    You could then:

    • try what’s suggested by @David Sulc which seems ok regarding my previous explanation

    • dig further in Paperclip’s code and maybe rewrite transformation_to defined here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi I am create one application in rails 3 I am using paperclip in
Using Rails 3.2.1 and Paperclip 2.6 I have Paperclip set to use s3 as
using rails with Paperclip, I can use the following to get the filename during
I'm using SWFUpload and Paperclip on Rails 2.3.5 to upload images and videos. How
I'm working on a web application right now using Rails and wanted to see
I have a simple rails app and i use paperclip gem for my image
I am trying to use the Paperclip gem on a Rails project so followed
I'm using ruby 1.9.2, rails 3.0.8, paperclip 2.3.11. I installed imagemagick some time ago
I use Paperclip like this: class Asset < ActiveRecord::Base has_attached_file :asset, :styles => {
I have a Profile model, which has attached file picture, using Paperclip. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.