search for: get_image

Displaying 10 results from an estimated 10 matches for "get_image".

2008 Oct 08
11
Using image_tag and send_data
I am using image_tag to load an image that I''ve saved to the database (using attachment_fu if you''re curious but that''s probably not relevant here): VIEW <%= image_tag ''/photo/get_image/5'' %> CONTROLLER def get_image @photo=Photo.find(params[:id]) send_data(DbFile.find(@photo.db_file_id).data, :type => @photo.content_type, :file_name => @photo.filename, :disposition => ...
2006 Aug 14
2
after_create is not being called
...:destroy belongs_to :title_photo, :class_name => ''Photo'', :foreign_key => ''title_photo_id'' validates_presence_of :title, :description, :file_path def after_validation if !errors.invalid?("file_path") images = get_images if images.size == 0 errors.add_to_base("There are no files in the directory #{get_images_path}") else errors.add_to_base(images.inspect) end end rescue SystemCallError errors.add_to_base("The directory #{get_images_path} does not exist&q...
2006 Jun 16
10
Issue with caching of .PNG files in IE..
I''m running a Rails application with WEBrick server. We are displaying an Image from the server to the Client (Browser). First time on the browser everything looks fine, upon clicking the link, it contacts the server and displays in IE brwoser the image that was stored on the server. But in case if the image gets changed on the server(File Name being the same), then even though i
2014 Mar 28
2
injecting a key into the xen images
...at hand. Comments ? I'm also considering if we should include this script within the .bz2 file for the image itself ( and for all such images ) Further feature creep, should we now extend this script a bit to also include a 'download and inject ssh key' with some param's like : ./get_image.sh 6.5 x86_64 <path to sshkey> and that can hit http://cloud.centos.org/<calculated path to image>/ ; download it, and add the key. This script could live within centos-release-xen dramatically reducing the barrier to entry and get-go with the xen4centos stack. thoughts ? - KB 1: qc...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...->movies; walk; walk = walk->next) { + swfdec_video_movie_new_image (walk->data, stream->surface); + } + } } static void @@ -182,19 +188,21 @@ swfdec_net_stream_loader_target_init (Sw /*** SWFDEC VIDEO MOVIE INPUT ***/ -static cairo_surface_t * -swfdec_net_stream_input_get_image (SwfdecVideoMovieInput *input) +static void +swfdec_net_stream_input_connect (SwfdecVideoMovieInput *input, SwfdecVideoMovie *movie) { SwfdecNetStream *stream = SWFDEC_NET_STREAM ((guchar *) input - G_STRUCT_OFFSET (SwfdecNetStream, input)); - return stream->surface; + stream->movies...
2007 Feb 08
0
3 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_script.c libswfdec/swfdec_video.c
...ut = g_new0 (SwfdecVideoInput, 1); + if (video->n_frames == 0) + return NULL; + if (video->codec == NULL) + return NULL; + if (video->codec) + input->decoder = swfdec_video_codec_init (video->codec); + if (input->decoder == NULL) + return NULL; input->input.get_image = swfdec_video_input_get_image; input->input.iterate = swfdec_video_input_iterate; input->input.finalize = swfdec_video_input_finalize; g_object_ref (video); input->video = video; input->current_frame = (guint) -1; - if (video->codec) - input->decoder = swfdec_v...
2006 Apr 12
9
Showing Images from a file store
Hi all. I am wrting a small content management tool for my company and was trying to display some images from our file store shown below. <td> <img src="\\xx.xx.xxx.xx\xx\xx\xxx\abc.gif"/> The app was displaying the image when it is under the \public\images directory. Is there anything special we need to do to get a file from outside the root of the application? Any help
2010 May 03
7
rendering images dynamically
Hi, I have a rails application where I respond to a request by fetching image urls from various web api calls and need to display them as they come available. I am able to display all the images once I get them all, but that causes an unacceptable delay for my user. One approach I am trying is, from my controller, set an @image variable, and then pass in a block to the model that retrieves the
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...w_image (walk->data, stream->surface); + swfdec_video_movie_new_image (walk->data); } } } @@ -350,6 +350,14 @@ swfdec_net_stream_input_disconnect (SwfdecVideoMovieInput *input, SwfdecVideoMov g_object_unref (stream); } +static cairo_surface_t * +swfdec_net_stream_input_get_image (SwfdecVideoMovieInput *input) +{ + SwfdecNetStream *stream = SWFDEC_NET_STREAM ((guchar *) input - G_STRUCT_OFFSET (SwfdecNetStream, input)); + + return stream->surface; +} + /*** SWFDEC_NET_STREAM ***/ G_DEFINE_TYPE_WITH_CODE (SwfdecNetStream, swfdec_net_stream, SWFDEC_TYPE_AS_OBJECT, @@...
2014 Nov 10
2
Non-Gnome desktop
...uffer 1280x1024 stride 5120, tiled [ 77.183] (II) UXA(0): Driver registered support for the following operations: [ 77.183] (II) solid [ 77.183] (II) copy [ 77.183] (II) composite (RENDER acceleration) [ 77.183] (II) put_image [ 77.183] (II) get_image [ 77.183] (==) intel(0): Backing store enabled [ 77.183] (==) intel(0): Silken mouse enabled [ 77.183] (II) intel(0): Initializing HW Cursor [ 77.183] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 77.183] (==) intel(0): DPMS enabled [ 77.183] (==...