# Overlaying an image with file\_column, rmagick

**URL:** <https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394>\
**Category:** Rails\
**Created:** [September 12, 2007, 6:24am UTC](https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394 "2007-09-12T06:24:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [September 12, 2007, 6:24am UTC](https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394/1 "2007-09-12T06:24:11Z")

</div>

Anybody know the rmagic commands in the model definition to overlay a  
24-bit png file over an uploaded jpg using file\_column?

I have this:

file\_column :post\_photo, :magick =\> {  
:geometry =\> “648x800”,  
:versions =\> { “small” =\> {:size =\> “60x60”, :crop =\> “1:1”, :name  
=\> “small” } }  
}

But I want to do this:

file\_column :post\_photo, :magick =\> {  
:geometry =\> “648x800”,  
:versions =\> { “small” =\> {:size =\> “60x60”, :crop =\> “1:1”, :name  
=\> “small”, _**composite my png image over this small version to round  
the corners**_} }  
}

TIA

---

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [October 11, 2007, 2:38am UTC](https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394/2 "2007-10-11T02:38:15Z")

</div>

Hey-

Did you ever find a solution to this with file\_column? I’m lloking to  
do a similar thing (add a border to all uploaded images) and was  
wondering if you figured it out.

thx

On Sep 11, 11:24 pm, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [October 11, 2007, 2:55am UTC](https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394/3 "2007-10-11T02:55:01Z")

</div>

Not yet. I kinda gave up on it as other priorities came to the fore. I  
did find another plug in that was supposed to be better than  
file\_column, but it has a steeper-looking learning curve so I put it on  
the back burner for now. But once I get things cleared away I will  
probably go back to it. I forget the name of the plug-in, though I do  
remember reading that a lot of people were saying it worked much better  
than file\_column and had more features.
