image

WPF: Selecting a jpg, resizing it and then saving it? Best option?

I was wondering what is the best way to go about taking a selected image, resizing it and saving it. From what i have heard WPF destroys image quality when it resizes images. Is this true, if so what method should i try to attempt this task? Thanks, Kohan. ...

WPF - Problems overwriting (re-saving) image when it was set as image source.

Good day all, I am having some trouble with image permissions. I am loading an image from file, resizing it and then saving it out to another folder. I am then displaying this like so: uriSource = new Uri(Combine(imagesDirectoryTemp, generatedFileName), UriKind.Absolute); imgAsset.Source = new BitmapImage(uriSource); This i...

PVRTC format compromises image quality

Hi, For iPhone game development, I switched from PNG format to PVRTC format for the sake of performance. But PVRTC compression is ruining the quality of the images.. I am using spritesheets with transparencies for the character animations.. and the pvrtc makes the edges look muddy around the character near the transparencies. I read th...

Image data of PCX file

I have a big binary file with lots of files stored inside it. I'm trying to copy the data of a PCX image from the file and write it to a new file which I can then open in an image editor. After obtaining the specs for the header of a PCX file I think that I've located the image in the big binary file. My problem is that I cannot figure ...

Converting an rgb image to hsv

Hi, I'm trying to convert an rgb image to the equivalent hsv one in C#. I found several algorithms to do the conversion but couldn't find how to save these values of an image after calculating it. For example after the calculation h = 287, s = 0.5, v = 0.34 . Where should I save these values in the image file to convert it to the equiv...

Firefox show broken images

In firefox a broken image appears as just a blank white space. On a white background there is no way to distinguish between no image and a broken image. This makes identifying broken images difficult to recognise and makes them go uncorrected. How do I make it so that broken images produce an X like they do in Internet Explorer? ...

How to change background color of image to green?

Now it's black. function show(){ $word=array("a","b","c","d","e","f"); $name=$word[rand(0,5)]; $im=imagecreatetruecolor(62,20); $black=imagecolorallocate($im,rand(20,100),rand(20,100),rand(20,100)); $white=imagecolorallocate($im,255,255,255); imagettftext($im,14,1,15,17,$white,'simkai.ttf',$name); for($i=0;...

Need help in save image in sql database using asp.net

Hi all, I trying to save employee image in employee database. I have three field in database table empid, empname, empimage. Here is my database part. CREATE DATABASE [Employee] GO USE [Employee] GO CREATE TABLE EmpDetails ( empid int IDENTITY NOT NULL, empname varchar(20), empimg image ) In the button click event, i have written th...

Should I use ImageMagick or GD2 with ImageAPI in drupal?

Why? What are the pros and cons of each? ...

Retrieving image from sql database

Hi all, Previously i had problem with inserting image into sql database. Now i have solved this problem and able to insert image in sqldatabase. Now I am facing problem with retrieving the image from database table. Here is my retrieving code: showimage.ashx: <%@ WebHandler Language="C#" Class="ShowImage" %> using System; using System.W...

Resize an Uploaded Image in Silverlight 3

Hi, I'm trying to resize an image in Silverlight 3 that has been submitted by a user via the OpenFileDialog control. I can grab the contents of the file and put it into a WriteableBitmap object and then display it on the screen just fine into an Image control. The Image control will even resize it to fit the size of the image control for...

Call Row_command event from javascript

Hi I am adding some rows to the gridview using javascript Now I have a image as 1 of the columns and I can succefully place the image thorugh javascript I have written a row_command event on the server side for image click This does and fetch something from database My question is how do add click event to image when I add rows...

Editing a xaml icons or images

Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing? ...

Which would you prefer? SVG, HTML5 or regen'd-PNG for graphs & charts?

I'm developing a new site that graphs some operational metrics. As such about a dozen charts/graphs will be displayed on the site. I want to be able to have them dynamically scale down (within reason) based upon the size of the browser. I'm debating the pros/cons of generating these as one of these options: SVG. Great for scaling b...

getimagesize() returns false on some images

I'm running getimagesize() to determine whether or not an uploaded file is a valid image and also it's MIME type. A user of my webapp reported that some of his images where getting an "invalid filetype" error after uploading them. So I asked him to send me some of them to check. Here's one. The error string itself is meaningless as it's...

Why is loading FromFile and new Bitmap different? Its breaking my code :(

I am using tessnet2 to extract the sentence in this img file. When i call the tessnet2 func using bmp it fails (it returns "~" as my sentence) and when i use bmp2 instead it works. WTF, why? The reason why i am am doing FromFile is because i am grabbing the image from my server and using Image.FromStream to directly load instead of savi...

Ruby/Rails image processing libraries

Good friends of stackoverflow, I am here today for guidance regarding image processing/manipulation using Ruby in a Rails environment. I'm creating on-the-fly dynamic banner ads that will feature mostly (if not completely) text. It's fairly simple with just a line or two, but I'd like the option to adjust font, text color, text size, etc...

Find images with similar color palette with Python

Suppose there are 10,000 JPEG, PNG images in a gallery, how to find all images with similar color palettes to a selected image sorted by descending similarity? ...

How should I give images rounded corners in Android?

I would like to change an image I loaded to have round corners. Any hints, tutorials, best practices you know of? ...

Internet Explorer PNG DOM Loaded Images

I have a site setup using transparent PNG images that, of course, don't want in IE without the transparency fix applied. Well, the fix is applied but it still isn't working. div, img { behavior: url('/path/to/fix/iepngfix.htc'); } I know it's loading the HTC file correctly as an alert(1) fires upon page load. The images, however, aren'...