search for: temp_path

Displaying 16 results from an estimated 16 matches for "temp_path".

2009 Feb 17
1
cloning an already uploaded image using attachment_fu
...ew item. I tried several tips found online. For example in http://danieloshea.com/articles/254-cloning-images # Create a clone of an image and it''s thumbnails. def create_clone c = self.clone self.thumbnails.each do |thumb| n = thumb.clone n.temp_path = thumb.create_temp_file n.save_to_storage c.thumbnails<<n end c.temp_path = self.create_temp_file c.save_to_storage c.save return c end But the end result is an exception at n.temp_path = thumb.create_temp_file saying tha...
2007 Jun 29
1
attachment_fu validation error
...).valid? NameError: undefined local variable or method `full_filename'' for #<Logo:0x3561ed8> And unfortunately that is triggered by something''s validates_associated if no logo is uploaded in its edition. I don''t see why valid? ends up calling set_size_from_temp_path, sizes were correctly computed and stored on creation: pp Logo.find(:first) #<Logo:0x35593f0 @attributes= {"content_type"=>"image/jpeg", "size"=>"187697", "thumbnail"=>nil, "id"=>"1&q...
2006 Jul 21
1
setting image resolution with Rmagick
...original images resolution and I want to change it to 72dpi. <<<<<< code example >>>>>>>>>> # these are the various techniques I have tried when and after reading the file, trying any or all of them does not work. image_render = Magick::Image.read(temp_path){self.density=72}[0] image_render.units=Magick::PixelsPerInchResolution image_render.x_resolution=72 image_render.y_resolution=72 # I also tried this when writing the image to disk image_render.write(temp_path){self.quality = 90, self.units=Magick::PixelsPerInchResolution, self.de...
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 Dec 13
4
Attachment_fu problems on updates
...lugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:21:in `join'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:21:in `full_filename'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:281:in `temp_paths'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:275:in `temp_path'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:241:in `save_attachment?'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:344:in `set_size_from_temp_path'...
2007 Mar 28
1
attachment_fu & update_attributes... bug?
....rb:23:in `returning'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:152:in `copy_to_temp_file'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:288:in `copy_to_temp_file'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:265:in `temp_paths'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:272:in `temp_path='' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:250:in `uploaded_data='' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `attributes='&...
2007 Aug 22
8
How to spec an attachment_fu model
...ata.nil? || file_data.size == 0 self.content_type = file_data.content_type self.filename = file_data.original_filename if respond_to?(:filename) if file_data.is_a?(StringIO) file_data.rewind self.temp_data = file_data.read else self.temp_path = file_data.path end end While I was digging I found out that "file_data" is a ruby Tempfile object. So, I tried to create a dummy file and pass it, but it failed. I found out in the CGI library, it actually extends the Tempfile object and adds some methods/properties. I...
2010 Oct 05
2
Feature request for maildir style boxes
...create_gid != (gid_t)-1 && fchown(fd, (uid_t)-1, box->file_create_gid) < 0) { if (errno == EPERM) { mail_storage_set_critical(box->storage, "%s", eperm_error_get_chgrp("fchown", temp_path, box->file_create_gid, box->file_create_gid_origin)); } else { mail_storage_set_critical(box->storage, "fchown(%s) fa...
2008 Sep 15
1
[attachment_fu] Allways triggering after_attachment_saved callback
Hi, I use attachment_fu in one of my apps and recently I''ve realized that udpates are taking too much time. After some debugging I''ve found that attachment_fu is calling after_attachment_saved callback no mather if attachemnt has changed or not. For example this code: after_attachment_saved do |photo| logger.info "after_attachment_saved" end # in console - always
2010 Jul 11
0
Attachement_fu error when updating existing photos
...gins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:23:in `join'' /vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb:23:in `full_filename'' /vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:369:in `temp_paths'' /vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:354:in `uploaded_data='' My ruby code: <% form_for(@photo) do |f| %> <%= f.error_messages %> <%= image_tag(@photo.public_filename, :BORDER=>0) %> <p> <label for="upload...
2009 Dec 14
2
4 crashes, dovecot 1.2.8, with backtrace
...= 3 seq = 4 view = 0x9e9a648 hdr = 0x9e982b8 rec = 0x0 __PRETTY_FUNCTION__ = "maildir_uidlist_records_drop_expunges" #7 maildir_uidlist_recreate (uidlist=0x9e7ec18) at maildir-uidlist.c:1274 control_dir = <value optimized out> temp_path = <value optimized out> st = {st_dev = 4, __pad1 = 34944, __st_ino = 0, st_mode = 3218056160, st_nlink = 166312736, st_uid = 36, st_gid = 166307928, st_rdev = 13252593345643914360, __pad2 = 45756, st_size = 17179869190, st_blksize = 134776960,...
2009 Oct 15
2
FS Quota broken for delivering BIG message
...ze); if (write_full(sstream->fd, data, size) < 0) { i_assert(errno != 0); stream->istream.stream_errno = errno; i_error("write_full(%s) failed: %m", sstream->temp_path); i_stream_close(&stream->istream); return -1; } ... } --- =kostik
2007 Mar 11
4
Faking it... import local files into attachment_fu
Hello, I''m working on an import utility that will match the functionality of uploading an object of a model that uses attachment_fu for thumbnailing, etc. Rather than uploading the file via a form, I want to populate the params[:image][:uploaded_data] with data from a file already on the server''s file system. So far, I''ve been able to copy to an instance of Tempfile
2018 Feb 23
2
Assertion during dsync receive
...cache_rec = {prev_offset = 0, size = 876} message_count = 1217766 seq = <optimized out> used_fields_count = <optimized out> orig_fields_count = 33 idx_hdr = <optimized out> #7 mail_cache_compress_write (unlock=<synthetic pointer>, temp_path=0x1bcddd0 "/gnoc/mail/home/bgeels/mail/mailboxes/Spam/dbox-Mails/dovecot.index.cache.tmp", fd=28, trans=0x1c48dd0, cache=<optimized out>) at mail-cache-compress.c:339 file_seq = <optimized out> max_uid = 1218104 i = <optimized out> count =...
2017 Aug 16
1
dotlock causing crashes
...y_create_new (error_r=0x7ffd7009f768, lock_r=0xc4ec10, fd_r=0x7ffd7009f700, set=0x7ffd7009f770, path=0xc2f930 "/gnoc/mail/home/bgeels/mail/mailboxes/Junk/dbox-Mails/.vsize.lock") at file-create-locked.c:65 fd = 20 orig_errno = <optimized out> ret = -1 temp_path = 0xbb5830 mode = 0 uid = <optimized out> gid = 4294967295 #9 file_create_locked (path=0xc2f930 "/gnoc/mail/home/bgeels/mail/mailboxes/Junk/dbox-Mails/.vsize.lock", set=set at entry=0x7ffd7009f770, lock_r=lock_r at entry=0xc4ec10, created_r=created_r at entr...
2017 Jan 24
1
Quota count does not work with lock_method=dotlock
On 24.01.2017 11:31, Tom Sommer wrote: > On 2017-01-24 10:25, Aki Tuomi wrote: >> On 24.01.2017 11:13, Tom Sommer wrote: >>> On 2017-01-18 15:27, mkliewe at gmx.de wrote: >>> >>>> dovecot crashes when I switch the quota tracking from dict to count. >>> >>> I have the same problem, but I use 'dict:file' as quota backend - >>>