image

did i must be include images with binary file (xcode)

hello. i finished my project in Xcode and everything in OK. when i tried to upload my app to apple store there are option :Please upload a new binary my question is : did i must be upload mu images i use with a binary file ? because when i select my binary file only itunes accept that. but when i try to upload my binary file with im...

Displaying incorrect Gravatar

I posted on this site earlier on questioning how to implement Gravatars into my php blog. I got an excellent answer but I've had one issue. The code displays the incorrect avatar. Any help is appreciated. Code: <?php function get_gravatar( $email, $s = 40, $d = 'identicon', $r = 'g', $img = false, $atts = array() ) { $...

Android: Resize a large bitmap file to scaled output file.

I have a large bitmap (say 3888x2592) in a file. Now, I want to resize that bitmap to 800x533 and save it to another file. I normally would scale the bitmap by calling Bitmap.createBitmap method but it needs a source bitmap as the first argument, which I can't provide because loading the original image into a Bitmap object would of cours...

Creating a C# WPF Image Button with a template that I can alter in code dynamically

Hey, I was figuring out how to create an image button template in C# WPF, and I came upon this . This seems really useful to me except for two problems: I want to be able to change the images dynamically in the C# codebehind, as this button will be using images that I am loading dynamically through XML documents. FIXED I'm getting the ...

ArgumentException on Image.FromStream when reading from Database

Ok, here is the thing. My program saves an image into a SQL Server Database, the column being of image type. When I try to recover it, I get an ArgumentException from the Imagen.FromStream method. The code that inserts the image is something like this: Bitmap img = (Bitmap)pictureBox.Image; MemoryStream m = new MemoryStream(); img.Save...

Image resizing algorithm

Hello, dear colleagues, I'm ashamed to ask this ... really ... but my brain doesn't work today. I want to write a function to downsize an image to fit specified bounds. For example i want to resize a 2000x2333 image to fit into 1280x800. The aspect ratio must be maintained. I've come up with the following algorithm: NSSize mysize = [se...

How to show image after html upload through ajax without reloading the page

I have basic form site with swfupload.swf upload component. In this form I only use swfupload single file html basic upload feature - meaning that only one file uploaded at time - this was done in order to make sure it works on all browsers - i had lots of problems with multiple file flash upload. I would like to view the uploaded ima...

jQuery: .load image, then fadeIn() fails when clicked twice!

Hey there, So I've got this .load setup for an image with a .fadeIn() callback, that works just fine. The problem is if I fire the .load twice in a row on the same image, it doesn't get to the callback! Here's a snippet of the code: $('#thumbs a').click( function() { imageSrc = $(this).attr('href').substring(1)+'.jpg'; // grab src...

How to display an image on start of a wpf app ?

Hi I have a wpf application in mvvm pattern. In main view, I have few links to other views. But before displaying the contents(that is ... the links) in main view, I need to display an image in main view ....that means...a welcome image will be displayed first to the user...say for 2 seconds...and then display the actual contents. Can a...

quickest way to dynamically retrieve image dimensions

One way to improve page loading is to specify image dimesions (hieght width). In PHP this can be done with getimagesize(), however I can imagine this would be quite slow to execute if you have alot of images. What is the best way to dynamically get image dimensions of many images with minimal effect on page loading. We are talking about...

drawing imaginary lines above image in android

Hi, I have a static image of a map and i want to draw imaginary line/route from one place to another above the map and also have facility to choose some area of map. How can i do it?? can any have any idea??? Any idea will appreciated ....thanks in advance.. ...

Can you make an html form to upload images from cell phones with PHP?

I have a website at which you can upload your photos from a trip, for example, and have them displayed in your profile. I am now trying to make a mobile version of this website. So my question is, what is the easiest way to make it possible for my users to upload their images from their cell phones to the website? ...

How can i store and retrieve images from a database?

I am creating a website as a mini project which will be used to sell various products. In the website i intend to give detailed info about the products which will be retrieved from the database. I am using Servlets and JSP as the serverside and pointbase DB. So i'll be using JDBC to connect to the DB. Please tell me how insert images int...

Combining animation frames to save space

I'm working on a project that uses a lot of graphics files. We've got about 500 60x60 PNG files making up several different animations (about 80), and taking up about 2MB of space. In the code, I just draw each frame one by one to render an animation. As an example, one of the animations is made up of 3 frames, each about 4 KB in size...

Imagecache with amfphp and flash multiple issues

Hello, I inherited a project with drupal and flash, and I'm pretty noobish on the topic so please don't bash me. What I'm stuck at is that I need to create multiple thumbnails for each uploaded image (5 version to be precise with different settings eg. 150w, 250w,..) I created the presets but I can't seem to understand how imagecache w...

IE not caching images returned from .NET handler?

Our images for our site are handled via a ASHX handler (closed source COTS system). It accepts a key and returns an image response. In the process though, if an image is using SSL, it will return a non-SSL URL as a 301. This works fine in Firefox and the like. The issue is with IE. In one scenario, we have the same image displayed twic...

Is it possible to tile images in a UIScrollView without having to manually create all the tiles?

In the iPhone sample code "PhotoScroller" from WWDC 2010, they show how to do a pretty good mimmic of the Photos app with scrolling, zooming, and paging of images. They also tile the images to show how to display high resolution images and maintain good performance. Tiling is implemented in the sample code by grabbing pre scaled and cut...

going from Inverse discrete FFT to spectrogram

I need to locate some generic C++ library that takes the inverse fft output (fftw_complex format, i.e. two doubles) and converts this data to an image file such as png. I can waterfall the dffts to obtain the 2d data (and use 10log10(re*re+im*im) to obtain magnitudes for each frequency component) but I don't know which image library wil...

BitmapFactory.decodeByteArray() is returning NULL

I am using the previewCallback from the camera to try and grab images. Here is the code I am using private Camera.PreviewCallback mPrevCallback = new Camera.PreviewCallback() { public void onPreviewFrame( byte[] data, Camera Cam ) { Log.d("CombineTestActivity", "Preview started"); Log.d("CombineT...

How to convert flash with dynamic data into AVI video

hy, after i upload some images and one mp3 files on my site it will make a slideshow (.avi file)! but nothing fancy, only a simple slideshow! i want to make a stereotyped in flash to load images and mp3 file and make a nice slideshow with some effects! the problem is... how i can save the swf file? (later to convert .swf file to .avi...