search for: from_file

Displaying 12 results from an estimated 12 matches for "from_file".

2016 Oct 28
0
Samba and BTRFS server-side copy
...> connect, so there is no chance to trigger a server-side copy. Oh, just checked the current gvfs source code to copy an smb file. It does: static gboolean copy_file (GVfsBackendSmb *backend, GVfsJob *job, const char *from_uri, const char *to_uri) { SMBCFILE *from_file, *to_file; char buffer[4096]; size_t buffer_size; ssize_t res; char *p; gboolean succeeded; smbc_open_fn smbc_open; smbc_read_fn smbc_read; smbc_write_fn smbc_write; smbc_close_fn smbc_close; from_file = NULL; to_file = NULL; succeeded = FALSE; smbc_open = smbc_getFu...
2009 Nov 06
2
mini_magick - 2 clarifications
1. I have seen examples similar to the following: image = MiniMagick::Image.from_file("input.jpg") image.resize "100x100" image.write("output.jpg") I''m assuming that image.resize is a method. Is there any significance to the fact that the argument for that method is not enclosed in parenthesis while the other are? Examples seem to be con...
2008 Jul 07
6
MiniMagick, and processing thumbnails...
...nded up doing this after the main photo model has been saved: [ @photo.public_filename, @photo.public_filename( :thumb ), @photo.public_filename( :medium ), @photo.public_filename( :large )].each do |path| path = "#{RAILS_ROOT}/public/#{path}" file = MiniMagick::Image.from_file( path ) file.combine_options do |i| i.gravity ''center'' i.bordercolor ''black'' i.border 1 i.bordercolor ''white'' i.border 10 end file.write( path ) en...
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, 27 Oct 2016 16:57:13 -0700, Jeremy Allison <jra at samba.org> wrote : > On Fri, Oct 28, 2016 at 01:42:35AM +0200, Saint Germain via samba > wrote: > > On Thu, 27 Oct 2016 16:27:05 -0700, Jeremy Allison <jra at samba.org> > > > if you see any of these then it happened. > > > > Ok I understand how to check that it happened, but how can I make
2012 Mar 19
2
[LLVMdev] Python bindings in tree
...re this is better. I might have done with separate pointer as you have if I started from scratch today. * Use of constructor vs "new" static methods. When using the bindings one never initializes the class manually. Instead a "factory" method is used: mymod = Module.from_file(...) mymod = Module.from_data(...) mymod = Module.new("foo") ity = Type.int(32) instead of mymod = Module(file=...) mymod = Module(data=...) mymod = Module(name="foo") ity = IntType(32) I prefer this in, especially in the cases where there are many dif...
2006 Mar 27
14
Image manipulation/resizing server-side?
I''d like to implement a system in a Rails app where I allow the user to upload an image file, and then the app takes that image and manipulates it, saving a thumbnail, small, and original size version of the file to the server. How would I go about doing that? Thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 Jan 03
0
Minimagick and RoR
...it working correctly? I hate posting a "bug" problem but I''m not if it''s *my* problem, or a problem with Imagemagick and RoR 1.0, which I just installed (upgraded from 0.13.1). Basically, when I try to run the most basic MM command in ROR: image = MiniMagick::Image.from_file("test.gif") ...I get an error, "ImageMagick command (identify /tmp/minimagic12741.0 ) failed: Error Given 32512". There''s nothing on Google, nothing on any other forums I could find. Anyone have any idea? Like I said, I just upgraded to ROR 1.0, and the command w...
2005 Dec 28
2
Plugin question
In the rails app I''m making, I dropped MiniMagick into the vendor folder (vendor/mini_magick). In my controller, when I call: image = MiniMagick::Image.from_file(path) ...I get a "uninitialized constant MiniMagick" error. From what I can tell, installing a plugin such as this should be as simple as dropping it into the vendor folder, then accessing its functions from the controller, but obviously not. Browsing some similar issues, I''...
2007 Aug 10
2
uninitialized constant MiniMagic (NameError)
Hi, Mini-Magick breaking. I have installed mini-magick gem. Here is my sample program require ''rubygems'' gem ''mini_magick'' include minimagick image = MiniMagick::Image.from_file(''./fun.jpg'') image.resize "100x100" image.write(''./funthumb.jpg'') Output: test.rb:3: undefined local variable or method `minimagick'' for main:Object (Name Error) Anyone can help this out? Thanks in Advance!!! --~--~---------~--~----~------...
2012 Mar 21
0
[LLVMdev] Python bindings in tree
...as long as the automatically generated code is easy to diff when they are regenerated). * Use of constructor vs "new" static methods. > > When using the bindings one never initializes the class manually. > Instead a "factory" method is used: > > mymod = Module.from_file(...) > mymod = Module.from_data(...) > mymod = Module.new("foo") > ity = Type.int(32) > > instead of > > mymod = Module(file=...) > mymod = Module(data=...) > mymod = Module(name="foo") > ity = IntType(32) > Yeah, Module is an example wh...
2012 Mar 19
0
[LLVMdev] Python bindings in tree
On 3/17/2012 4:14 PM, Anders Waldenborg wrote: > FYI: > > I've also been working on new python bindings. > > My bindings are written using ctypes (just like the in-tree > clang/cindex bindings). Most of Core.h is bound, and stuff from > ExecutionEngine.h, Analysis, BitReader, BitWriter. The have fairly > good test coverage (using nosetests). The ctypes definitions are
2012 Mar 17
3
[LLVMdev] Python bindings in tree
At Fri, 16 Mar 2012 14:12:08 +0100, Christoph Grenz wrote: > > Hello, > > Am Donnerstag, 15. März 2012, 21:15:02 schrieb Gregory Szorc: > > There was some talk on IRC last week about desire for Python bindings to > > LLVM's Object.h C interface. So, I coded up some and you can now find > > some Python bindings in trunk at bindings/python. Currently, the >