image

Saving Images to folder | PHP

I want to be able to open the provided URL (which is done via a form) that is an URL that will allow the server to save the file into a directory, for example: http://www.google.co.uk/intl/en_com/images/srpr/logo1w.png I want to save that logo into this directory: img/logos/ Then it will add it to the database by giving it a random...

Pasting image to clipboard in python in linux

Ive tried the gtk method, but it is very slow and doesn't work for a 'large' image (120 kb) import pygtk pygtk.require('2.0') import gtk import os def copy_image(f): assert os.path.exists(f), "file does not exist" clipboard = gtk.clipboard_get() img = gtk.Image() img.set_from_file(f) clipboard.set_image(img.get_pixbu...

Prevent images loading in html

I'm developing a mobile version of a website, unfortunately because of the archaic CMS in use it's not possible for me to alter or offer an alternative template for the pages - therefore I only have css and javascript (and maybe .htacess) at my disposal. I've looked around, and I think there may be a way to prevent images from loading u...

How to Programmatically convert large scanline tiff image to tiled tiff image?

Hi, In Mac OSX Cocoa, How to Programmatically convert large scanline tiff image to tiled tiff image? The input tiff image size could be around (20000X12000) (20K X 12K) Regards, Dhanaraj ...

How to organize and manipulate pictures in filesystem?

Although it may not seem like that but there is a little questions about this subject. I am not asking if I should use DB or filesystem, the file system it is, but I am asking what is the best way of organizing pictures in file system that will be used with asp.net application? I am talking about tens or even hundreds of thousands of pic...

Problem installing phpimage for TinyMCE

Hay all, this is really bugging me. I have downloaded phpimage from http://sourceforge.net/tracker/index.php?func=detail&aid=2844769&group_id=103281&atid=738747 I've decompressed the zip file and moved the "phpimage" folder into my "plugins" folder. In my settings i've added "phpimage" to the "plugins" setting so it reads ...

custom image in UIButton

hi all. i have a problem with the uibuttons . i cant scale image to fit their frame . please any advice ...

Can't insert a picture into RichTextBox

I want to insert a picture into a RichTextBox. I add the picture in coding. This is the major code, adding a jpg image: MemoryStream memoryStream = new MemoryStream(); img.Save(memoryStream,System.Drawing.Imaging.ImageFormat.Jpeg); byte[] bytes = memoryStream.ToArray(); String width = img.Width.ToString(); String height = img.Height.To...

Tinymce insert link to an image error

Hi i create my own filemanager. This open in a popup. if i insert a link to an text the code is work perfect, but if i use it an image remove the selected image in opener window function addslashes(str){return (str+'').replace(/[\"']/g, '\$&').replace(/\u0000/g, '\0')} var code = window.opener.tinyMCE.activeEditor.selection.getContent...

Best way to determine mime type of a file in java?

Curious what the best way is in Java to get the mime-type of a file. It should actually inspect the file because filenames aren't an accurate indicator. Currently I'm using the following which seems to be very hit or miss is = new BufferedInputStream(new FileInputStream(fileName)); String mimeType = URLConnection.guessContentTypeF...

How to send an image from a Java Applet to JavaScript?

Hello, I have a Java Applet that is generating an image. Ultimately, I would like to insert the image data into a database, so I want to temporarily store the image data in a form field on the page containing the applet. I am hoping to do this without storing an image file on the client machine. This all comes from a signature pad. Her...

How can I convert between RGB565 and RGB24 image formats in MATLAB?

I am getting an RGB matrix from a microprocessor that outputs an image in RGB565 format. I want to read this into MATLAB, convert it to RGB24 format, and output the image. How do I do this? ...

Applet Image Cache

Hi SO. I have an applet that shows a couple of images. A lot (10-20) of these images is identical, and is fetched from the internet in a non-parallel way. Is there an imagecache that I can use? So I only fetch the same image once, or do I have to make my own? Thanks ...

How to save BitmapImage / WriteableBitmap in png format (Silverlight/windows phone)?

How can i save an image (BitmapImage / WriteableBitmap) in png format using Silverlight for windows phone? ...

iphone png file upside down

Hi All, I'm trying to draw an image to the screen in a UIView subclass I'm making. It's all working perfectly expect for the fact that my image is coming out upside down. I'm using the code... CGFloat height = CGRectGetHeight(rect); CGFloat width = CGRectGetWidth(rect); UIImage *thumbImage = [UIImage imageWithContentsOfFile:[[NSBundl...

Can you open a JPEG, add text, and resave as a JPEG in .NET?

I want to write a small program in .NET 4.0 that will open a .jpg (or .jpeg) file, add a line of text to the image, and then resave the image as a .jpg. Does anyone know the easiest way to do this? Thanks for any help. ...

Creating several customized button template

I am just wondering if I can make several button templates in WPF then assign to a specific button the template to be used by 'declaring' the button template name (or other method you suggest) The button templates I am trying to create are: Button with black background, rounded corners, text display Button with silver background, roun...

I want to display the image from xampp folder?

Hi all, Working with PHP. I want to display the images which are in xampp folder not in htdocs (which will be root of the website). How to go about it? I have tried <img src="../../image.jpg", and also tried with src=/image.jpg, not working. Given the total path as src="E:/xampp/image.jpg" still not working. What may be wrong. The file ...

Images are black in PDF

I'm creating piecharts using JFreeChart, use chart.createBufferedImage(width,height) and give the buffered image to IReport as an image parameter. In IReport I have an image and its image expression points to this parameter, so I can render the image. But when exported to PDF, images are covered with a black rectangle. Something about tr...

WPF: image click

Hi, in WPF I draw an image with an Image Control: <Image x:Name="Image1" Width="150" Height="180" VerticalAlignment="Bottom" HorizontalAlignment="Center" Stretch="None"/> Sometimes, the image is smaller than the control. So, what would be the best solution to show an Hand cursor (and get Click-Events) only if the mouse is on the imag...