image

How do I only load an image when the user scrolls to it

Many sites appear to only download images or generate parts of the document (eg for reviews) when the user scrolls far enough down the page to actually see them. This obviously will give you faster loading pages and save on bandwidth for anyone that does not bother scrolling down. How is this done, ideally with jquery? Or to ask it ano...

Monochrome Bitmap

Should be an easy one. I'm working on Scala trying to handle long sequences of binary data. That is long lists of 0's and 1's. What is the 'best' way to store/access this kind of data. The important point here is memory optimisation, so I would like to avoid using an entire byte to store a boolean. Also access is somwhat important, so ...

Combining jQuery and Pixastic. I cannot get the two to work.

I've been banging my head against the wall all day with this one. Here is the link http://www.olliemccarthy.com/test/blur-experiment/ I just want to click on the image and then see it blur out. That's it. Here is the code I've been using so far. $(document).ready(function() { $('.test').click(function() { $(this).("blurfast", {a...

Programatically hiding images in Telerik RadGrid image columns

Greetings, I've got a RadGrid populated with data from a DB. I've also got an image column which is to display an icon based on whether or not a specific boolean property (called IsDirty) of the object populating the row is true or false. If it's true, show the icon in the image column; if not, show nothing. The icon is the same for eve...

Drupal 6: how to assign more than 1 imagecache to 1 cck field

Hi friends, I create few imagecache for featured slide img standard listing img details page thumb and original img I need to assign all these imagecaches to 1 image that member upload. so It will create all these images from 1 image upload, and I will use them wherever I need. At cck editing part, I can assign only 1 imagecache :/...

Remove background image on image load

I'm loading image tags via AJAX and inserting them with the conventional .html(content) function in jQuery alongside a bunch of other HTML. However, this question still applies if you're loading a page from scratch. Now, I have a background image placeholder to be put there while the image loads. I want this background image to go away w...

force browser to add horizontal scroll bar?

Hey, Just wondering if there's some way to force the browser to bring up the horizontal scroll bar. My problem is that I have some images in a div and they "overflow" out of it when I make the window smaller. I would rather not use the overflow property nor do I want to resize the images. Thanks in advance, Matt ...

Using a large image (file size) but not hinder load time?

My demo is here. Basically, I have a HUGE image (19160px × 512px to be exact, just under 2MB) that I transition the backgroundx using javascript to make it appear as if a transformation was happening. I cannot compress the image much more without ruining its quality dramatically. Is there another way that I can achieve this with the sa...

Objective-C implementation of Shape Context algorithm (Image Matching)?

There is a very cool sounding technique called Shape Context matching, which can be used in an Image Recognition application to match an "unknown image" against a known "image library." There are numerous descriptions of the concept documented on the web (mostly all variations of the same original paper), for example: http://www.eecs...

Bad anti-aliasing when using WriteableBitmap in Silverlight

Hi, My silverlight program draws thumbnails as shown below: System.Windows.Controls.Image image = new System.Windows.Controls.Image(); // BitmapImage bitmapImage contains a big image image.Source = bitmapImage ; ScaleTransform transform = new ScaleTransform(); transform.ScaleX = 0.1; transform.ScaleY = 0.1; image.RenderTransform = trans...

jquery/js images out of a box preview effect

Hey, I am building a web page for a software (not a browser but this software uses webkit as it's rendering engine). The window of this software has a size of 800x600 pixels. Users will be able to download collections of images as zip files that include appr. 15 images per collection. A white box represents such a collection (see below)...

FCKeditor. Work with image

I have two problems with image upload in FCKeditor. I. The folder for uploaded files is "user" and it situated in the root of the web-site. There are two ways to upload image in FCKeditor: 1. Insert/Edit Image - Browse Server - Upload a new file in this folder - Upload. Image is uploaded to the folder "Image", which situated in the fold...

Set background image according to screen resolution

I would like to be able to change my webpage background image according to the screen resolution the user uses so: if screen resolution is greater than or equal to 1200*600 then background = mybackground.jpg no-repeat or else. How can I do this? ...

How do I extract sections (multiple sections per page, multiple pages) of a word document/pdf/image as separate images/word documents/pdfs?

Here's the basic problem: I have about 10,000 word documents that contain blocks of data. Each block is numbered and also has an accompanying image. I need to somehow store these individual blocks to a db as images (text would be great, but read note below), without the numbering. I can go through and have typists mark the beginning and...

How to rotate the images wpf

Hi All, I want to create a smooth moving of images. i have gone the following link but i dont know how to implement. http://stackoverflow.com/questions/2772520/wpf-c-images-rotating-from-a-listview Geetha ...

An image link won't work on codeigniter

Can anybody explain to me why this won't work on CodeIgniter? .linkBack{ background-image:url('/myBlog/CodeIgniter_1.7.2/pictures/arrow.gif'); display:block; height:58px; width:105px; text-indent:-999px; } <div class="linkBack"><?=anchor('myBlog', 'Back to Blog');?></div> while this would work perfectly: #linkBack { backgr...

PreLoad and cache image in jQuery for "loading" icon (or any better solution)

I am working with dynamic tabs in jQuery. When the user opens a new tab, the content is loaded via ajax: function addTab(tabId) { $("#tabs").tabs('add', tabId, tabId); $(tabId).load("..."); } I want to display a loading icon while the content is being loaded. So I am setting the tab panel content in the add property of the tab...

apache status dynamic image

I have a php script which create a dynamic image with cache. I use ETAG and expire headers for all my images, for this I use a regexp like '.(jpg|gif|png)$'. With this method a user receive a "304 Not Modified" server response when the user has in cache images from my website and he refreh a page. The problem is that my dynamic image a...

WPF: How to load lots of large images fast into wrappanel?

I have about 45 decently large images (about 680x1000) that need to be loaded into a simple user control (rounded backborder with fill, image, textblock, and 2 side rectangles) and then displayed in a wrappanel. Virtualizing won't really help here since the images are to be all visible at program load. I know inside of the BitmapImage ...

a compression/packing problem

Hi everyone, I have a problem: Given an array nxm that contains 0's or 1's, I need group the 0 values into rectangles. At the beginning, I was used a simple quadtree, but different nodes in the same level of the tree have the same value. I'm not totally sure if the R-tree works for my problem or another data structure because I just will...