image

C++ Reading and Editing pixels of a bitmap image

I'm trying to create a program which reads an image in (starting with bitmaps because they're the easiest), searches through the image for a particular parameter (i.e. one pixel of (255, 0, 0) followed by one of (0, 0, 255)) and changes the pixels in some way (only within the program, not saving to the original file.) and then displays i...

jquery xml slideshow using ajax

Hi all, I am trying to create a JQuery based slider using ajax to load images url from a xml file and then creating a html li list dynamically. Till now I am able to append and create DOM structure using Jquery. But I am not able to access the dynamically created list. I have also tried custom events using bind but not able to succes...

How to store private pictures and videos in Ruby on Rails

Here's a story: User A should be able to upload an image. User A should be able to set a privacy. ("Public" or "Private"). User B should not be able to access "Private" images of User A. I'm planning to user Paperclip for dealing with uploads. If I store the images under "RAILS_ROOT/public/images", anyone who could guess the name of...

Android - Images from Assets folder in a GridView

Hi, I have been working on creating a Grid View of images, with images being present in the Assets folder. http://stackoverflow.com/questions/1933015/opening-an-image-file-inside-the-assets-folder link helped me with using the bitmap to read it. The code am currently having is: public View getView(final int position, View convertVie...

Saving images in database mysql

My client have created a script in php+mysql that saves images directly in the database and every images has url like this: www.example.com/image.php?id=421 In your opinion this is a very wrong solution ? Should I rebuild all the site ? There are about 1000 visits per day and about 600 images in the database. This is the site: http://...

Images not displaying if using file:///c:/

I am using jQuery and would like to display the images from my PC, rather than hosting them. I have the following: /* works fine: */ .ui-widget-header .ui-icon { background-image: url(images/ui-icons_2e83ff_256x240.png); } /* does not work: */ .ui-widget-header .ui-icon { background-image: url(file:///C:/ui-icons_2e83ff_256x240.pn...

Why insert static files ( css, images, js, ecc ) in a subdomain ?

Why so many big and little sites inserts static files ( css, images, js, ecc ) in a subdomain like media.example.com or s2.static.example.com ? What are the advantages ? Why not just a directory like example.com/media/ ? ...

how to get the RGB value of an image in a page using javascript?

I am trying to make a bookmark-let. But I'm stuck at a point. I need to extract the RGB or the color value of an image of very x pixel using the "For Next" statement. But i don't know what function can help me to extract the RGB value. Can someone please help me out with the function that tells the value of RCG of a given point in a pict...

Problem with caching images on server- jQuery

Hi I have the weirdest problem. I am implementing a simple gallery with a use of nivo slider jQuery plugin. Everything works perfectly when I test it on my local machine, however I am having an issue on an online hosted server. The images do not tend to appear when you first open the website. There seems to be an issue with caching the...

How to create Jigsaw image puzzle using C#

HI, I am trying to figure out how to take an image file and convert it into a puzzle. I know how to do rectangular puzzles, but I am looking for non-rectangular shapes. Please see this link, I am looking to arrive something like the final output http://howto.nicubunu.ro/gimp_jigsaw_puzzle/ Is there a way we can do this using .NET Tha...

Creating and rendering an image dynamically with transparent background for use with drawImage

Could someone provide an example of how to dynamically create an image in Java, draw lines et cetera on it, and then draw the image so that areas not painted will remain transparent in the drawing process? ...

make 2 thumbnails at once in codeigniter

hello everybody! can anyone tell me how to create 2 different thumbnails of same images with different sizes and location in codeigniter. I have created a upload function and another thumbnail generation function, it works fine but can't sort out how to create 2 different thumbnail at accordingly at once. any help will be appreciated. ...

Displaying image with php

I have a script which displays images like this: header("Content-Type: image/{$ext}"); readfile($image->path); This has worked fine for weeks and now suddenly it has stopped working. The response header looks fine (Content-Type: image/jpg), I have no ending php-tag and I have made no changes to my code, server- or php-setup which could...

ASP.NET MVC Image refreshing

Hi, I have an Employee object which has an image property. Image class contains image metadata as image caption, and image file name. If I upload a new image for an employee on async way without full post back the new image is not appeared on the page. I use GUID to name the image file to avoid the page caching. I do the image modif...

LabWindows/CVI - add image

I am a beginner in using LabWindows/CVI and I need to load an image on a chart. I need an example. Please help!! ...

How can I know the jpeg quality of the read image using graphicsmagick

when i read a jpeg image using Magick::readImages(...) function. how can i know the estimated jpeg quality of the image ? i know how to set the quality when i wanna write the image, but it is not relevant to the quality of the original image, so for example: when I read an jpeg image that its quality is 80% and I write it using 90% quali...

Preview Site as Thumbnail

Hello all, I am trying to figure out how services like snap shot are so fast in showing a preview of a site as a small thumbnail when you hover over a link? I mean I can generate a thumbnail of a site and show it but it will take me 10 seconds or more but for services I have seen that provide this, its almost a second or two. How are t...

Show information over image on rollover

I want to be able to show information (HTML basically) over an image when the mouse rolls over the image... I know there is a .hover() jQuery function but am unsure how to use it to get the desired effect. Ideally when a user hovers over an image it would "grey out" (e.g. layer of 50% opacity black) with some HTML like a title etc etc. ...

Need example of how to create/manipulate image pixel data with iPhone SDK

Looking for a simple example or link to a tutorial. Say I have a bunch of values stored in an array. I would like to create an image and update the image data from my array. Assume the array values are intensity data and will be updating a grayscale image. Assume the array values are between 0 and 255 -- or that I will convert it to ...

Problem in displaying image in FireFox

Hello friends, I have a JSP page on which I have a div tag in which there is a a IMG tag. Using this IMG tag I want to show an image in it. Here the source path of an image is comes from database so I assigned a JSP variable using JSP scriplet. This JSP variable have the source path of an image. This path of image may be of differen...