similar to: file_column Cropping -> image offset information

Displaying 20 results from an estimated 200 matches similar to: "file_column Cropping -> image offset information"

2006 Apr 07
4
file_column and animated gifs
hi, is it possible to resize animated gifs with file_column? if i upload an animated gif file with file_column than the animation no longer exists... -- Posted via http://www.ruby-forum.com/.
2006 Feb 03
3
File_column and rmagick options
Hi, Currently I''m using the file_column plugin to upload images and save multiple copies of each at 3 different resoltions: file_column :name, :magick => { :versions => { "thumb96" => "96x150>", "medium250" => "250x400>", "large480" => "480X640>" } } I am wondering if
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
I''m trying to use file_column in an app I''m writing. Simple file uploads are working fine. However, when I try and use the :magick options to make resized versions, WEBrick dies. This is the Media model: class Media < ActiveRecord::Base file_column :media_item, :magick => { :versions => { :thumb => {:size =>
2007 May 02
1
problem in: img_options["size"] = img_size
hi guys, I have show_image problem. I have the following code in application_helper.rb in my rails project def show_image(src,img_size) img_options = { "src" => src.include?("/") ? src : "/images/#{src}" } img_options["src"] = img_options["src"] + ".gif" unless img_options["src"].include?(".")
2007 Jan 04
1
rmagick working in console but not in my app
hey all, When I do this in script/console I get: >> require ''RMagick'' => true >> include Magick => Object >> f = Image.new(100,100) { self.background_color = "red" } => 100x100 DirectClass 16-bit >> f.crop_resized(50,50) => 50x50 DirectClass 16-bit But in my application I keep getting the same error as if rmagick was not
2003 Jan 16
3
unsafe_symlink change (Re: CVS update: rsync)
The patch from 2-1/2 years ago for changing copy-unsafe-links to follow unsafe links on the destination side also included essentially this patch. When I looked at it, however, I asked why in the world is unsafe_symlink() doing strdup() in the first place. I think you could get rid of the calls to strdup() and the new local variables and possibly do a couple casts inside the function instead. -
2007 Mar 28
5
link_to best practice
I''m looking for best practice for creating a hyperlink which has both an icon and text. I am currently using this in my view: <%= link_to image_tag(''icons/add.png'', { :align => ''absmiddle'', :border => 0, :size => ''16x16'', :alt => ''New education record'', :title => ''New education
2015 Jun 16
1
Strange problem with rsync and expect
Version: 3.0.6OS: CentOS 6.6 I met a strange problem when using rsync with expect. I wrote a script backing up using rsync and expect. However when I run the script twice for two different files at same time, the two files on destination path would be deleted automatically before the files closed. The output of inotify_wait was like: ./ MODIFY .redo02.log.dOlbek ./ DELETE .redo02.log.dOlbek
2009 Dec 03
3
imap crash with backtrace (1.2.8)
The Log: Dec 3 10:14:35 postamt dovecot: dovecot: child 27689 (imap) killed with signal 11 (core dumped) Backtrace: GNU gdb (GDB) 7.0-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
2011 Jul 03
1
[Bug 8284] New: hfs-compression.diff patch incorrectly expands relative directory
https://bugzilla.samba.org/show_bug.cgi?id=8284 Summary: hfs-compression.diff patch incorrectly expands relative directory Product: rsync Version: 3.0.8 Platform: x64 OS/Version: Mac OS X Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org
2006 Apr 26
2
--link-dest and file/dir transfer to remote rsync daemon
Hi NG, I want to do incremental backups to a remote server running rsyncd (because daemonless transfer via ssh often hangs!). In contrast to transfer via ssh (without remote rsyncd) this doesn't seem possible, or do I miss something? Imagine I want to incrementally backup `mydir' to the backup space `backup' on e remote server `alpha' running an rsync daemon. rsyncd on
2006 Aug 31
2
Event.observe problem
Hi everyone! I came across and interesting problem with prototype Event.observe. Take this code for example: <script type="text/javascript" src="cropper/lib/prototype.js"></script> <script language="JavaScript"><!-- function handler(e) { if (document.all) { e = window.event; } var key; if (document.layers) key = e.which; if
2017 Aug 23
2
rsync got stuck
Hi I rsync from 4 machines to a single destination one, and I am certain the filenames they sync do not overlap. But from time to time rsync from a source machine gets stuck (not always the same source machine). I followed https://rsync.samba.org/issues.html and I gathered strace, lsof and netstat when the freeze occurred. I'd like to ask for any further debug info or ideas! General info
2010 Mar 09
1
Obtaining the true aspect ratio for a lattice plot
I almost always supply my own aspect ratio when plotting using lattice. When I plot these to pdf, I would like to specify pdf dimensions that will result in minimal margins around the plot. In my application, resorting to a pdf cropper after plotting is not an option - I must do it in R. The problem is that I cannot determine the correct aspect ratio for the overall plot (accounting
2017 Sep 05
1
rsync got stuck
On 08/30/2017 05:39 PM, Paul Slootman wrote: > On Wed 23 Aug 2017, Vangelis Katsikaros via rsync wrote: > >> abc 3797 3796 0 01:12 ? 00:03:14 /usr/bin/rsync --compress --compress-level=9 --bwlimit=512k --recursive --delay-updates --quiet --update --exclude=/.* /SRC_PATH/ DEST_____IP:/DEST_PATH/ > > Try running rsync without the --compress option, that has been
2009 Jan 30
2
rescue ActiveRecord::RecordInvalid
Hi all, I am using is_attachment plugin, but I will always end up with this error: RuntimeError in PostsController#create BLAH which was caused by: version.filename = file_name_for_version(version_name) begin version.save! rescue ActiveRecord::RecordInvalid raise "BLAH" end end RecordInvalid was raised by save! because is invalid. Does anyone know why? I am uploading
2006 Jul 26
0
webrick slows and crashes on thumbnail creation
ok here is my view code: <% for img in ary %> <%= resize_image img.name %> # img.name= /homa/joe/pictureimg.jpg <% end %> here is my resize_image code in application_helper: def resize_image(imgfile) pic = Magick::Image.read(imgfile).first thumb = pic.crop_resized(maxwidth, maxheight, gravity=Magick::CenterGravity)
2008 Sep 23
3
calling save in after_create hook
Scenario: I''m creating an image file upload service for my web site. As well as saving the actual file I also need to create a database record for the file. I would like to name the file after the record id, but I also need to save some attributes of the image (width/height/mime_type etc) which I can''t discover until after the file is created. The Problem: 1) The id is not
2006 Jun 04
4
"can''t convert Magick::GravityType into Integer"
Am having trouble with file_column -- on certain crop operations, it says: A TypeError occurred in [controller]#[action]: can''t convert Magick::GravityType into Integer [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `crop'' Any advice? Here''s the backtrace: [RAILS_ROOT]/vendor/plugins/trunk/lib/magick_file_column.rb:90:in `crop''
2007 Feb 22
0
Cropping images with RMagick after uploading with acts_as_attachment
Hi, I''m using acts_as_attachment to create thumbnails in a filesystem (no problem there), but I''m having a rough time figuring out how modify the image to crop it, and then put it back into the filesystem. I think that I can pull the image OK and modify the Image OK with RMagick. So really I just need a pointer on putting it back into the filesystem as a modified thumbnail,