similar to: reprocess attachment_fu thumbnails with ImageMagick edits

Displaying 20 results from an estimated 1000 matches similar to: "reprocess attachment_fu thumbnails with ImageMagick edits"

2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
I am using attachment_fu to create thumbnails, and it is working great. However, I am have a view with all my users thumbnails displayed and am trying to make it so when you click on a thumbnail of their avatar, it shows that users profile. In order to accomplish this I have saved a user_id identifier for each avatar, but the problem is that attachment_fu only saves this user_id for the main
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
Hi there, I''d like to use RMagick to watermark an image in the tmp directory before Attachment_fu saves it to Amazon S3. I took a look at the callbacks available in attachment_fu. There''s an ''after_attachment_saved'' method but this would be too late, and a ''before_thumbnail_saved'' but this is no good because it''s for thumbnails. I
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make attachment_fu polymorphic, so you no longer need a different table and Model class for every associated attachment (Productimage, Ad_doc, etc). All you really need is one model and table to handel all your attachments - in some cases, anyway. I have the code working, but have run into one small hitch that I can''t seem to
2007 Dec 18
2
attachment_fu and S3 -- cannot download file correctly
I don''t know why this isn''t working. If I download a word doc that I uploaded, all I get is the S3 file path in the document. If I access the s3 file path directly in my browser, it downloads the file correctly. Here is my controller method: def download @curriculum = @school.curriculums.find(params[:id]) send_data @curriculum.attachment.public_filename, :filename
2008 Jul 29
1
can't crop images using ImageMagick
I''m using Attachment_Fu to save several thumbnails of a photo (resizing with ImageMagick) But when I try to crop them, nothing seems to happen to the file I want to drop and no error messages. I check the file timestamp of the thumbnail I want to crop and it looks updated. What''s strange is that ALL the other thumbnails and the original image''s file timestamps are
2007 Jun 27
5
How to make attachment_fu generate RESTFUL URL
hi folks: I follow this article:http://clarkware.com/cgi/blosxom/2007/02/24 all goes well except the public_filename ,it return something like "photos/0000/0001/test.jpg" ,not the expected RESTFUL URL LIKE ''photos/1/test.jpg'',any suggestion? My Env is Rails 1.2.3 on Ruby 1.8.6 with attachment_fu from http ://svn.techno-weenie.net/projects/plugins/attachment_fu/ by now
2007 Sep 03
0
Attachment_fu won't upload images to S3 on Windows XP?
I''ve been slugging through Google posts on why attachment_fu doesn''t want to upload the entire image file to S3 on a Windows XP machine and fine no conclusions as to what I should do? Here is a link with many suggestions. I''ve tried all of them and none work for me. http://www.ruby-forum.com/topic/99870 I try .png, .jpeg and .gif and they all simply put a ghost file up
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
I just installed attachment_fu and for some reason, it seems to be looking in the wrong location for my images. I have a Product model that belongs to a photo model. the photo model has the attachment_fu installed and configured like so: class Photo < ActiveRecord::Base has_attachment :content_type => :image, #Allow standard image formats :path_prefix
2007 Apr 17
1
attachment_fu - propagating attributes to thumbnails
I have a model using attachment_fu (via has_attachment) and I''m creating thumbnails for the attached images. I have an extra field ''foo'' that I''m validating on create with validates_presence_of :foo. One problem arises when I upload an image: The ''foo'' is not propogating down to the thumbnails. What should I put in my model to grab the
2007 Dec 02
0
attachment_fu doesn't generate thumbnails on windows
Hi, I''m having trouble with attachment_fu on windows not generating any thumbnails on the fly. I started out trying to incorporate this into my app without success then tried implementing Mike Clarke''s tutorial (http://www.clarkware.com/cgi/blosxom/2007/02/24) and got the same problem. I have resolved some gotchas I found in the "attachment_fu on Windows" thread
2008 May 09
0
Attachment_Fu : how to remove thumbnails only and regenerate
hello guys i am using attachment_fu for product images i have hundreds of products and their images with thumbnails :thumbnails => { :thumb => ''100x100>'' } now we have decided to have thumbnails of size 50x50> only. how do i destroy the existing thumbnails for images and regenerate the new thumbnails i shud be doing something like this product_images.find(:all)
2007 Apr 21
3
attachment_fu thumbnails
howdy! I had the problem that attachment_fu didn''t make a thumbnail, but everything else worked. I read this post http://www.ruby-forum.com/topic/104213 and added a parent_id column. now I get the following error when I trie to add a photo: undefined method `find_or_initialize_by_thumbnail_and_parent_id'' for Photo:Class my code is: class Photo < ActiveRecord::Base
2008 Jul 07
6
MiniMagick, and processing thumbnails...
I have a requirement that can''t be that outrageous.... I want to be able to upload an image, and have multiple thumbnails be created for each. Then, I want to post process each image (the main image plus the thumbnails) to add borders. The trick is that the borders need to be different for each image. I thought I could use the after_resize handler, but when I try to add a border to
2012 Aug 07
3
Barcode Generating With Label On Canvas by using Barby gem
********UNDEFINED METHOD REGISTER ERROR IN THE FALLOWING CODE ******* Hi all, I am trying to generate barcode(including its name as label at the bottom of barcode image for easy understand with out scanning by barcode scanner). For this I am Using barby, chuncky_png, rmagick gems. I am using the fallowing code to generate label at bottom of image by using rmagick gem: gem
2006 Feb 23
7
How to set a relationship with a value from a selection list
I realize this is probably a very basic problem but I''m developing my first rails app and running into this problem. I''m trying to write a photoblog application. I have a photo table and an album table. Photo has a to-one relationship to Album. Photo.album_id => Album.id In my view for photo I have a selection list that''s populated with all the available albums.
2007 Aug 22
8
How to spec an attachment_fu model
First off, I''m not trying to spec attachment_fu, I know it''s been tested. But, I added some code to that model that I do need to test. Basically, I need to somehow fulfill the "uploaded_data" property so I can actually run my tests(otherwise they fail because of validations). The "uploaded_data" field is what would grab the multipart data from form. Here
2007 Oct 24
4
RAILS_ROOT
Hey, I''m using the attachment_fu plugin to upload images on the file system. To retrieve them I''m using: image = "/home/rajeev/Desktop/logo/logo/public#{icon.public_filename}" which is the same as: "/home/rajeev/Desktop/logo/logo/public/icons/0000/0005/green_nature_on_white.jpg" Have can i do this in a shorter way by using RAILS_ROOT? I have tried this
2007 Feb 06
1
Attachment_fu ImageScience FreeImage thumbnail quality
I''ve tried migrating acts_as_attachment to attachment_fu (just to see if I could replace RMagick with ImageScience+FreeImage), but the quality of the thumbnails is just horrendous, blurred beyond recognition (downscaling a 1280x1024 to a few considerably smaller thumbnails). Changing attachment_fu to use RMagick again and the thumbnails were crispy sharp again. I was wondering
2010 Jul 11
0
Attachement_fu error when updating existing photos
Hi, I am attempting to replace an exiting photo with a new one uploaded by the user. I am using attachment_fu and I am coming up with the following exception: can''t convert nil into String /vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:23:in `join''
2008 Oct 25
1
attachment_fu replace thumbnail
hi. I use attachement_fu and create this two thubnails of an image. :thumbnails => { :medium => ''380x>'', :thumb => ''x100>'' } Is it possible to replace the existing :thumb image with another image? The main Image and the :medium should remain unchanged. thanks michael -- Posted via http://www.ruby-forum.com/.