gif

Managing animated images in PHP

Hello! I would like to have some information about this topic. Everybody knows that it's possible to manage and even create images with PHPs gd-library, but is it possible to edit animated GIFs without losing the animation? Hope that someone is wise enough to answer this :) Martti Laine ...

How do I save a bitmap as a 16-color grayscale GIF or PNG in ASP.NET?

In ASP.NET C# I'm trying to save a bitmap image as an 16-color non-transparent grayscale image as either a PNG or GIF. I assume I have to create a palette and then somehow attach the palette to the image but not sure how to go about doing this. The source image is a 24-bit color Bitmap. ...

Problem wiht wrong file format (gif insted of jpg) when saving images from server - PHP

I am using this peace of PHP code to save and rename some images. foreach ($phones as &$value) { $link_img = $handle = @fopen($link_img, "r"); if ($handle) { while (!feof($handle)) { $buffer .= fgets($handle, 4096); } fclose($handle); $filename = "files/nokia_".$pho...

PHP: Converting png's and gif's into grayscale

Hello, im using the following script to convert jpgs into grayscale-images. http://bubble.ro/How_to_convert_an_image_to_grayscale_using_PHP.html i want to upgrade it to also convert pngs (with transparency) and gifs (with transparency) into grayscale images. At the moment it's not working. I'm querying the image-src for its file-extens...

comparing GIF images pixels

I need to compare 2 same-size, nearly identical images for exact differences in the RGBs of every pixel. I would like to find a tool that already does it... seems nowhere to be found on google, strangely. If I could even find a tool to print out the RGB values of every pixel I could compute it by hand (the images are small enough) or l...

PHP: grayscale jpgs, gifs, pngs... also with alpha channels?

Hey guys, $im = ImageCreateFromString(file_get_contents($source_file)); ImageFilter($im, IMG_FILTER_GRAYSCALE); any idea what i could do, to properly grayscale gifs and pngs with transperancy? This snippet actually works good, it transforms jpgs and pngs to grayscale. However gifs are a little bit "buggy" - they don't always work, it...

Scale down animated GIF with PHP GD

Is it possible to scale down a animated GIF with PHP GD so that it's still animated? If so, how? ...

PHP - Create simple animated GIF from two JPEG images?

Hi, Does anyone know if it's possible to generate an animated GIF from two different JPEG files, displaying one image for x seconds then the other, and so on..? Any advice appreciated. Thanks. ...

Need to create an animated GIF in C#

I have tried all sorts of soloutions, such as http://bloggingabout.net/blogs/rick/archive/2005/05/10/3830.aspx and http://www.codeproject.com/KB/GDI-plus/NGif.aspx but none of them seem to work correctly. NGif was okay, but the resultant gif was corrupt (white pixels on first frame). And I couldn't get Rick van den Bosch's code to work a...

Image handling in Java

Hello! I'm thinking about the best way to do two things in Java: merge two images, the background one in .PNG and the other in .GIF or .PNG (has transparency and is to overlap the first one); convert the merged image to .GIF (with transparency). I don't want to render them, just to handle the images in the java class and write the re...

Java: Make an animation/video from frames

Howdy! For a research project (in Java), I've got to find some way to save an animation of a graph into some file format. Now I've already got the program working fine drawing each frame. The problem is, short of learning the whole GIF or AVI file format, I have no idea how to assemble the frames programmatically into some sort of an...

controlling gifs with javascript

Hi, Is it possible to use javascript to control which frame of a gif image is showing / stop animation. I want to be able to load a gif with several frames and only show one of them. I know I could do it with lots of seperate images, but if I can do what i want with a gif, it will only be one file to worry about. Thanks, Logan ...

How to handle PNG image loading time in html, css

When I have an <a> tag set to a specific image background like this: HTML: <a href="..." title="click here">Click Here</a> CSS: a { background: transparent url(button.png); } and I want the background to change whenever a user hovers over the spot, like this: CSS: a { background: transparent url(button_HOVER.png); } The hover...

How to use exe in SharePoint on itemAdded?

I have a need to convert any document gets uploaded to Image. I downloaded the exe (with all the dlls) on my local machine (dont have to install) export.exe sourcefile.doc destinationfile.gif >> this syntax works from my local dos prompt. How do I use the same syntax "export.exe exampledoc.doc exampledoc.gif" when an item is added to s...

Are there any technical problems using an animated GIF for a web site’s favicon instead of an actual .ico file?

When putting a favicon on your site, you can apparently use an animated gif, just by changing the gif file’s extension to .ico. http://www.k-director.com/blog/how-to-add-an-animated-faviconico/ Have you encountered any problems doing this? (Aside from users being driven mad by some stupid little blinking favicon.) Have you seen a br...

How can I convert a WMF picture to GIF or PNG with Delphi?

Is there a way to convert a WMF picture to GIF or PNG with the Delphi 2009 (or newer) run time libraries? If not, which image conversion library would you recommend? ...

How-to display a .gif as background image?

Hi! I have a javascript "loading" function like this: function splashScreen() { var div = document.createElement('div'); div.appendChild(document.createTextNode("some text")); div.style.position = "fixed"; div.style.width = "100%"; div.style.height = "100%"; div.style.left = "0"; div.style.top = "0"; div....

IE7 Animated GIF Appears as a Static Image?

Hello all, After a button is clicked to start a process on my web app, I show a small loading gif (animated) that rotates to indicate to the user something is happening. I put the gif img in place of the button like this using JQuery: $('#btn_holder').html('<img src="images/loading2.gif" style="margin-left:40px; margin-top:7px;" />'); ...

does a windows application in C# support gif annimation ?

Is this possible ? if yes how ? I am creating a windows application, which makes multiple web queries. I want the interface to have a loading symbol, so that the user doesn't feel that the screen has frozen. Thank you. ...

Why '.png' files produced by ImageMagick are so much bigger than '.jpg' & '.gif' files?

Hello. I'm using ImageMagick to convert some files from one format to another. I was always under the impression that .png files were supposed to be as big/small as .jpg if not smaller, and definitely smaller than .gif. However when I run convert photo.jpg photo.png The files I'm getting out is about 6 times bigger than the origin...