similar to: hand writing sql for eager loading of thumbnails

Displaying 20 results from an estimated 6000 matches similar to: "hand writing sql for eager loading of thumbnails"

2006 Apr 23
2
file_column and Thumbnails
I see that the SVN version of the excellent file_column plug-in can create thumbnails using the url_for_image_column helper. This uses Rmagick to create the thumbnail... Quick question... Let''s say the file is a TIFF image - can the helper create a JPG version of the thumbnail for display in the browser? Curious if the plug-in can handle that transform with some creative use of the
2010 Nov 11
1
samba over internet slow with images/thumbnails
Hello, Iam providing access to many images on a share to windows users from my linux samba over the internet. The problem is that I need thumbnail viewing because of the nature of this library and thumbnails take to much time to load it seems as though it is actually loading the entire image to then display the small thumbnail. Is this true? Also isnt there some kind of caching that can be
2008 Jun 30
1
javascript onclick for thumbnails
Hi, i was struggling for a function where only 1 thumbnail should be active and others inactive when clicked on the particular thumbnail. code: 1. view: 2. <script type="javascript"> 3. function PlayVideo_options(videoFile, id) { 4. document.getElementById(id).className = ''video_option active_video''; 5. } 6. </script> 7. 8.
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
2006 Mar 05
4
Resizing images and creating thumbnails
Hi, 1. How to resize an image uploaded by a web form before saving it to the disk? (i need all uploaded images to have similar size) 2. How to create thumbnails? Is it enough if i specify small size of the image in html or would the image look horrible? Can i do it somehow in ''realtime'' using javascript? Or is it best to create thumbnail as a separate file? 3. How to get
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
2006 Mar 27
3
RMagick and thumbnails
I''ve based my code on the Agile example for uploading files, pages 362-365. I''ve successfully loaded the Picture object to the database, but I come unstuck when trying to replicate this for a thumbnail version of the original image: thumbnail = Thumbnail.new thumbnail.name = ''thumbnail_'' + @picture.name.to_s
2012 Mar 29
4
link Explorer Shell extensions to Gnome thumbnailer
Programs with special uncommon file formats (not jpg) often register a shell extension in Explorer that offers thumbnails for these files (since the files otherwise wouldn't have previews). When I trigger in a Wine application (eg. SketchUp) the File Open dialog, I can see previews of the files (skp files) in the preview panel. This means the shell extension does work in Wine. The Shell
2011 Jun 25
0
Good Centos Security Advice & Gnome Thumbnails
Browsing the net for one thing unexpectedly brought me to two good and useful documents: (1) Guide to the Secure Configuration of Red Hat Enterprise Linux 5 http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf Revision 4.1 February 28, 2011 (2) Hardening Red Hat Enterprise Linux 5 http://people.redhat.com/sgrubb/files/hardening-rhel5.pdf Updated 12 August 2010 Gnome Thumbnail system is
2007 Jan 08
6
Thumbnail plugin
Hi, With some help from Quinn_Storm, iXce, maniac103, mikedee and KristianLy :), I've managed to modify switcher.c and make a new plugin: thumbnail. The plugin shows thumbnails of windows when cursor is moved over a task button in taskbar. Screenshot: http://pix.nofrag.com/b0/7a/051d45e25bfffed09eeb9b00e383.jpeg Download:
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
2019 May 13
2
VM display is blank when open (but Gnome Boxes thumbnails ok)
Hi, I also posted this question on the IRC #virt channel but have not received any reaction at the moment of posting this message to the mailing list. Since I last turned off my laptop (Dell XPS-15-9570 running Ubuntu 19.04) on Friday 10 May (I had to do it by long power press by the way), I am no longer able to get the display of my VMs: I am getting a black screen, even though I can see it
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)
2006 Feb 25
2
Ruby Interface Recommendations Photo Gallery Creation?
Hi, I''m looking to create a gallery index page of thumbnail images which point to their associated images galleries. Also, I would like to organize the images from left to right and top to bottom. Furthermore, I would like to limit the number of thumbnail images on the page. I guess that I''m needing some type of horizontal looping interface for both the thumbnail index page
2006 Feb 17
1
validate() with has_many association
I''m creating a simple portfolio site for a painter. I have a painting and an image model with following relationship: Painting has_many :images Image belongs_to :painting On the edit screen the user can edit the Painting data as well as upload pictures for a thumbnails and full size image. The Image model extracts filename, width, and height from the uploaded file, saves those
2006 Apr 24
0
ImageMagick and EXIF Data
Hi there, I''m writing a little application that parses an image file and extracts the camera settings from the file (the EXIF data) and saves all the fields to the database. The idea is that after awhile people will be able to search based on camera make, model, lens settings, etc... and all the pictures that meet those requirements will be displayed. The picture is stored on the file
2006 Mar 01
2
error: uninitialized constant
total rails nuby here. I have a table "thumbnails", hence the model Thumbnail. I''m extending the Thumbnail class with a few constants needed for thumbnail cropping: class Thumbnail < ActiveRecord::Base SOURCE_FILE_PATH = "path/to/source" TARGET_FILE_PATH = "path/to/target" TARGET_WIDTH = 100 TARGET_HEIGHT = 100 end Now, in my controller
2007 May 05
0
acts_as_attachment - no thumbnails?
the full-size pics upload OK, but no thumbs or resizing. There are no errors or exceptions that I can see, just not getting any thumbnails. The DB column ''thumbnail'' is always NULL rmagick-1.15.6 is freshly installed. I have the :thumbnails stuff setup per http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing using a model like this: class EventPic
2006 Jun 20
0
file_column Trying to Create Thumbnails of Non-Image Files??
Howdy. We use the handy file_column plug-in in some of our apps. We have a model with a file field and we upload both images and non-images into this field. It is specified as follows: file_column :file_uri, :magick => {:versions => {:thumbnail => {:size => ''200x''}}} Well, it works great for images but for non-images, the save fails. The root cause is an
2009 Feb 02
1
Thumbnailer for Windows apps?
This only just occured to me, but I think it might be a good idea... There are thumbnailer applications out there for the strangest formats now (like NDS files) next to most file browsers auto-generating thumbnails for images and keeping it in ~/.thumbnails. I was wondering how feasible it is to have Windows app's icons extracted and used as a thumbnail for these apps though. Makes apps easy