image

How to programmically get the height/width of an image?

On my PHP application, I allow users to upload images. I then process the images to resize it to a manageable size. Within my PHP script, I run the following UNIX command (ImageMagick): convert -size 320x240 This limits/constrains the height/width to be no larger than 320 by 240. However, I don't know actually what size "convert" r...

Problems loading bulk data in mysql using php.

I have a script that gets the raw binary image data via url request. It then takes the data and puts it into mysql. Pretty simple right? Well It's I'm inserting some 8,000 decent sized 600x400 jpegs and for some odd reason some of the images are getting cut off. Maybe the part of my script that iterates through each image it needs to ge...

Mapping a directory outside the web-app to URL in TOMCAT

Hi, I need to map an directory containing images which resides outside tomcat webapps folder, so that application can serve those images. I am making a J2EE Web application running under tomcat 6. User can upload/delete images in the application. Currenly I store these images to a directory under application's WebContent folder, but I...

How to Create flexible Image Frame?

I want to create PNG Frame on top of the Image , which come dynamically so the Image Height and width different for all the Image. http://thejourneyhomebook.com/photos/index.html this is the final result which I want to achieve. Is this possible using jQuery. It will be fine to use more images and divs. thanks ...

Generale image preloading question

I used to code in javascript - jquery and PHP. I like to have a folder of, let asy 100 images, scan it and get it to screen with a fade in beetween, and delay... Much of that can be done pretty esealy The question : only for speed purpose, i like to get img1, show it preload img2 wait 2-3 second fade to img2 preload img3 wait ... and so...

Embedded images not showing when in a UserControl

I have an Image control that contains a path to an embedded image (build action 'resource'). <Image Source="Assets/images/image.png" Stretch="None" /> If I add that to a container in my MainPage.xaml the image appears fine. When having the same image in a UserControl as shown below, and then adding an instance of that UserControl on M...

How to set Image Perspective

Hi, I am working in Mac OS X, 10.6 How can i set the image perspective of any image? I do not want to use CoreImage. Is it possible to do it via NSAffineTransforms. Regards, Dhana. ...

Extract image from PDF using .Net c#

I want to extract images from PDF. Tried many solutions but still not getting solution. Help me out....Thanks in advance ...

Can ImageMagick return the image size?

I'm using ImageMagick from the command line to resize images: convert -size 320x240 image.jpg However, I don't know what size ImageMagick is resizing the image too. Since this is a proportionaly image scale, it's very possible that new image is 100x240 ... or 320x90 in size (not 320x240). Can I call the 'convert' command to resize t...

Blend not rendering images in User Control

Hi, I am developing a WPF application, and I have created a user control called ViewIconUC. This control lives in an assembly (MyControlAssemblyUI). I can instantiate the control in a ZAML page within this control, and I get no errors (I even attached the dugger to Blend to check), and I can see the button background I set in the control...

Response.Flush() throws System.Web.HttpException

...

.NET component to view and annotate documents and images

I need a component that I can install on my server that can be used in an ASP.NET Web Application to: Display word documents, PDF documents, images in the browser. Allow these documents to be annotated online and have those annotation saved for redisplay later. Thanks in advance. ...

php imagejpeg mime type

I am using php's imagejpeg to save a GD image resource to a file, doing this: imagejpeg($im, '../images/' . $image_id . '.jpg'); It works fine, but according to my browser, it tries to read the file as text/plain: Resource interpreted as image but transferred with MIME type text/plain. Is there a step before saving the file that...

Maintain the aspect ratio of an image ?

Hi, I am using pictureBox to show images which are received from server but my problem is that picture box in compact framework has only three Size Modes StretchImage, Normal, CenterImage the pictures i am getting are generally bigger in size so i have to use StrecthImage mode. But then the aspect ratio is maintained so the images s...

image upload with ajax and php

i want to use ajax to upload image. in this module 1. on clicking brows image will be upload and display over file field. 2. after ading title and description and clicking on button that image will be display bellow and upper image field will be blank I have tried meny way but not working. Plz anyone help me asap ...

Java/ImageIO Getting Image Dimension without reading the entire file ?

Hi all, is there a way to get the dimension of an image without reading the entire file ? URL url=new URL(<BIG_IMAGE_URL>); BufferedImage img=ImageIO.read(url); System.out.println(img.getWidth()+" "+img.getHeight()); img=null; Thanks ...

How can I speed up image load time in my web site?

I am currently developing a web site with PHP + MySQL and jQuery. So far I have been doing it in my local machine. I notice that when I see the page the images on it take some time to load (few time but its visible). All images are small (PNG's with less than 3 KB). Now, when I load the page, there are some database connections happening...

CSS and images on Master Page

Hello, I have this quite popular problem, but have failed to find a solution that works. Basicly, I am using a Master Page (/Masterpages/Default.master), that includes <link href="../css/style.css" rel="stylesheet" type="text/css /> And it also includes some images with the same relative linking. But when I apply the Master Page to ...

How to overlay a rectangle on an image in WPF

I want to place a static rectangle on top of an image. The rectangle should be a percentage of the image size (like 80%) regardless of the image size. I have tried to put the image in a Canvas and as a Canvas background but then I can't get the image to fill the surrounding area. <Canvas Grid.Row="1" Grid.Column="0"> <Canvas.Backg...

Creating a default image in a UserControl

I have a User Control that has one child - an Image. I'm trying to set a default image using code in the User Control's default constructor to display an image resource, but so far with no success in either Blend preview or when I actually use it in a running app. I do not get any errors either. Shouldn't this be possible? Here is the X...