image

How to display image in html email message?

I'm writing a j2ee application, that generates an html and sends it as email. In my html, a have an image, but it is not displayed when email is received. The html code is something like: <img src="myimage.gif"></img> where "myimage.gif" is sent as attached file in the email. I tried to change it to <img src="cid:myimage.gif"></img>...

toggle image on hover using Jquery.

First of all please dont suggest me to do this using css. I need to toggle between two images on-hover using Jquery. I need that two images (two toggling images) should be downloaded at the time of page load. Cause else it will create a lag time for the first time. As my images are two banners on the home page.I need to do something cre...

Filetype check in VB.NET?

I have an image resized program and it works. The problem is when a user selects a non-image file in the file select dialog, it crashes. How can I check for image files? ...

<img> tag greyed out in firebug hence found the reason for image not showing up. Need help fixing it.

I'm debugging a website for missing images. The website heavily uses GWT hence the source code is not so verbose. I started debugging it with firebug and found out that the tags are all greyed out in the firebug DOM source. If I edit the image tag in firebug console, say by adding just a space, then the image tag is not greyed anymore h...

IIS/Plesk Not Serving Pages or Images

This site hosted on IIS 6, The only back end access I have to the server is via Plesk 7.6 both old :( the problem is, nothing on the site loads. Plain old .html is a blank page, .php tries to download and images do not load at all. There are other sites on this server that are loading images and pages both .html and .php perfectly just ...

SVG - Cut out one path out of another one

I have several SVG paths looking like this: M204.21121687607624,196.94037184487675L329.92080751248244,195.46306542867487A130,130,0,0,0,244.46261863233696,77.83995929783192Z M198.39145828733604,195.04941765207442L235.83285625620988,75.03597952801854A130,130,0,0,0,97.55860203112616,119.9640082076644Z I now want to add another path, ...

Uploading images with PHP and hitting the script memory limit.

I am trying to upload a JPG image using a PHP script, but the image is keeps causing my script to time out and die giving this error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2136 bytes) in image.php on line 38 How can I prevent the upload from taking place if the image is too big, or have thi...

PHP GD library losing quality. Other ideas?

So I'm in the middle of working on a website that deals with photographs. A user uploads their original photograph and GD library creates a smaller sized image of the same photo. However, when comparing a manually sized down image with the GD one, the GD image seems to lose quite a bit of color quality like it had been slightly desatur...

Store front-end features in Rails?

In the public folder we have stylesheets, javascripts and images. I want to add a front-end feature that has it's own css, js and images, but according to this hierarchy i have to store them like this: stylesheets/calendar/main.css javascripts/calendar/cal.js javascripts/calendar/cal2.js images/calendar/front.jpg images/calendar/button...

OpenCV: Drawing on an image

Hello everyone! I am working on a program using the OpenCV library (though I am quite a noob on it). One of the things I need to do is to draw on the image. I looked at the OpenCV drawing functions and they all seem pretty simple (Circle, Line, etc), however the program won't compile! It says this to be exact: error C3861: 'Line': identi...

css image placement

I have a full width container (100%) and i like to have a image inside NOT A BACKGROUND for clicking purpose... How can i center the image into the container horizontally ? here is a sample : http://notrepanorama.com/test/ Solution : .centerimage { margin-left: -960px; width: 1920px; left: 50%; position: absolute...

Images and Audio in an Alert Dialog

Hey guys, I'm using the following tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html in order to create a map view and plot points on to it. I have all of that done fine but now I'd like to embed an image and even audio within the Alert dialogs that pop up. Is this possible in the current context? How wo...

(NetworkX) [Python] How can I specify an exact output size for my graph?

http://imgur.com/7wiRw.png The above is the output of my current graph. However, I have yet to manage what I am trying to achieve. I need to output my graph in a larger size so that each node/edge can be viewed with ease. Ive tried nx.draw(G, node_size=size), but that only increases the size of the nodes, not the distance between nodes a...

Display picture box faster

I am trying to load images quickly into a picturebox and draw on them. I have a .13 second delay between the time I assign a bitmap to the picture box and when it shows up. And whenever I do a picturebox.refresh(), it is the same delay of .13 - .15 seconds before the paint method is called. Is there any way to get rid of this delay? I a...

UIScrollView showing other images when its main image is smaller than window

I have a tab based app that basically has several tabs that are nothing more than scrollviews containing imageviews in them. The scrollviews can scroll, and zoom and all that fun stuff. The problem I am running into, is that if you are in one tab, and shrink or scroll around in such a way that the image for that view does not fill the ...

Optimising Images for Internet Explorer

On a site of mine, my client is reporting that images that are reduced in size by code (i.e. specified a width/height) are appearing jagged and pixellated. I have asked her what browser she uses and inevitably it's Internet Explorer. Is there a way to optimise images in IE or do I need to manually resize the images on photoshop before ...

Efficient way to generate fixed size thumbnails for large size images?

What could be the efficient way to generate fixed size thumbnails for large size images in Java? I have a multiple directories/sub-directories to scan for image files and generate thumbnails for each image. Can I browse multiple directories at same time and generate thumbnail simultaneously? I'm thinking of having two types of processes...

Avoiding duplicate resources in android project

I have some images in my drawable folder and they have landscape versions in drawable-land. However I want some of the landscape images to be shared, as it seems a waste to duplicate the file with a different name. Is it possible to make a sym link (shortcut) or something for one of the duplicated files to prevent wasting space Folder e...

Rotate an image about a specific pixel in python

How can I rotate an image about a specific pixel in Python? I am trying to de-rotate a set of images of the night sky. Since the stars rotate around Polaris, I could define Polaris as the center of rotation and rotate each image to line up the stars. ...

Android: How do I attach a temporary, generated image to an email?

I have a programmatically generated image that I want to send as an attachment via the ACTION_SEND and EXTRA_STREAM method. But how do i do this? My first attempt (writing to my context.getCacheDir() based file path) appeared to work in the Gmail preview (no image preview, but attached file name and icon was visible), but the attachmen...