image

how to make a h2 background image 'dynamic' in height as well

I have a 1px wide by 35px high image, that I set as background for my h2 elements. The accompanying CSS is as follows: h2 { background:transparent url(./images/h1_bg.gif) repeat-x left top; font-size:18px; } As a result, the background is set as the image no matter what the length of the heading is, as long as the heading fits...

Why print button always showing when cursor on an image tag in my web page

I'm have an .aspx page done with Vb.net and the buttons "Save Image" "print image" "Send image" is showing when I put the cursor on one of the images tag. I say one image because it doesn't appear on the other images tags. I don't want these buttons! ...

How can I stop images from being cached -OR- how can I check that a file exists on the server?

My site loads images based on names that are created for them. It loads images assuming that they're there when sometimes they're not. Every time it loads an image like this: <img src="/myimages/my-image.jpg" alt=""/> if it's not there on the server, it seems to cache that there wasn't an image there, so next time I load up the same i...

Can Javascript access native image size?

I'm writing a jQuery function where I'd like to access both the native size of an image, and the size specified for it on the page. I'd like to set a variable for each. How is that done? ...

How can I validate an image file I download from the Web on iPhone?

I am downloading images using the NSURLConnection sendSynchronousRequest method and that works fine. However, occasionally I run into an issue where the image URL points to something other than an image file. For example, I found this non-image URL was causing issues: http://www.100plusposters.com/images/ExoticFlowers.jpg The URL ret...

How do I load binary image data using Javascript and XMLHttpRequest?

I was trying to load an image client side and base64 encode the bytes returned by the server in order to pass it off to perform some processing. IE has a RequestBody property of the XMLHttpRequest object, but I can't seem to use it, and RequestText is truncated. In Firefox, RequestText is there, but seems corrupted. ...

How do I use an .ashx handler with an asp:Image object?

I have an ashx handler: <%@ WebHandler Language="C#" Class="Thumbnail" %> using System; using System.Web; public class Thumbnail : IHttpHandler { public void ProcessRequest(HttpContext context) { string imagePath = context.Request.QueryString["image"]; // split the string on periods and read the last element,...

jquery , images, selector

Hello, a I have some images on page and I want to put <span> tag bellow each images, with 'alt' text , with jQuery I began with : HTML <div class='container'> <img src='images/1.jpg' alt='text1' /> <img src='images/2.jpg' alt='text2' /> <img src='images/3.jpg' alt='text3' /> </div> jQuery $(".container img").after("<s...

How to find, whether an image has been zoom to its max??

Hi, I have an image which is zoomed to max, in general, for any image, if its width or height is been scaled beyond 15000f (roughly), the image vanishes. Is there any way to find whether the image is been zoomed to its max? something like getPixelsPerUnit ?? Thanks. ...

How can I specify resources in an MVVM view model?

Suppose I want to show list of objects where each object should have a name and a suitable image (for example MenuItems with Icons, or buttons with text and image). All examples and programs exposed the image in the viewmodel as a path to a PNG file and then bound the Source of an Image to that. But what if I want to use vector images (...

Waiting for images loading with JQuery

I trying to wait for images finished to load but it seems that the load event is never matched. Here's my code : $(function() { var arrowWidth = 22; var currentImageID = -1; var imageOffsets = new Array(); var loadedImages = 0; var numberOfImages = $("div#sliderGallery > ul > li").size(); $("div#sliderGallery > ul").hide(); $("div#sli...

Replace [StructLayout] with something that doesn't use System.Runtime.InteropServices?

I have no experience with low level programing and I need this piece of code to not use [StructLayout(LayoutKind.Explicit)]. My site runs on a shared host and in medium trust. So it won't run if this code is in there. Update: I'm using this inside a Octree to Quantize a png file. Does anyone know a work around? Update New question her...

Is there any way to do Image Quantization safely and with no Marshalling?

I'm currently using Brendan Tompkins ImageQuantization dll. http://codebetter.com/blogs/brendan.tompkins/archive/2007/06/14/gif-image-color-quantizer-now-with-safe-goodness.aspx But it doesn't run in medium trust in asp.net. Does anyone know of a Image Quantization library that does run in medium trust? Update I don't care if the solu...

FFT-based 2D convolution and correlation in Python

Is there a FFT-based 2D cross-correlation or convolution function built into scipy (or another popular library)? There are functions like these: scipy.signal.correlate2d - "the direct method implemented by convolveND will be slow for large data" scipy.ndimage.correlate - "The array is correlated with the given kernel using exact calcu...

Graceful Page Loading / Controlling File Loading

Hi folks, I am a scriptmonkey working with a lot of graphic designers who know not a thing about the web. Despite my objections I frequently find myself with problems such as a 100Kb background image, several textual items they have made into glossy images, and 3 separate lengthy FLVs loading into a page etc etc. I would really like t...

Storing uploaded images on Google App Engine with Java

I am looking at writing a Java web application on Google App Engine. I want to be able to upload and serve images from the app but just realised that the Datastore have a 1MB limit. This is slightly too little for decent pictures. Is there an alternative way you can suggest of doing this? Perhaps storing those as static content rather th...

Display 32bit bitmap - Palette

Hello I have an image data in a buffer(type - long) from a scanner which is 32 bit. For example, buffer[0]'s corresponding pixel value is 952 which is [184, 3, 0, 0] <-[R,G,B,A]; I want to display/Paint/draw on to the screen; I am confused when i tried to read about displying bitmaps. I looked at win32 functions, CBitmap class, wi...

NSOperation + Objective-C Categories = Bad Idea?

I've set up an Objective-C category for an iPhone app's UIImageView class. The category's mission is to help load URL-based images asynchronously with memory/disk caching. Now, in UIImageView+Cache.m I have access to an NSOperationQueue so I can kick off a loading thread. I create an NSOperation-derived object, initialized with the imag...

How can I append text to a databound field?

If I have this: <img ID="imgField" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem,"Name") %>' /> How can I add "images/" or any other string add on to the url? I tried ImageUrl=' "images/" + <%# DataBinder.Eval(Container.DataItem,"Name") %>' And ImageUrl= "images/" + '<%# DataBinder.Eval(Container.DataItem,"Name"...

Algorithm challenge: Generate color scheme from an image

Background So, I'm working on a fresh iteration of a web app. And, we've found that our users are obsessed with being lazy. Really lazy. In fact, the more work we do for them, the more they love the service. A portion of the existing app requires the user to select a color scheme to use. However, we have an image (a screenshot of t...