Animated gif creating on iPhone (some C library)? - iphone

Any reliable third party library?
I've found Jitsik's Giraffe so far, but he said that it has poor palette handling.
Any other solution (some C library maybe)?

With ImageMagick.
3fr.ms implementation: Using ImageMagick to create animated GIFs on the iPhone

Related

Convert video to GIF

I'm building an iOS app which requires me to allow the users to record a 15sec clip (with UIImagePickerController for example) and then convert it into an animated GIF. How could I achieve this? Is there any library/framework available for such task?
Thanks!
This gist code piece may help you.
https://gist.github.com/mayoff/4969104
It shows how to export frames into a gif image.
I don't believe there is any existing library that would do a straight conversion for you. There's a lot of libraries for displaying animated GIFs - far fewer native Objective-C libraries for creating them.
Fortunately, iOS does have support for saving as GIFs. There's an existing StackOverflow answer that covers how to create animated GIFs in-depth here:
Create and and export an animated gif via iOS?
...there's also a library on GitHub that abstracts the lower-level stuff away, although it's not been maintained for a while (link here).
All you'll need to do is create an array of the frames you want to convert into your GIF. I strongly recommend you don't try and convert every single frame in your 15 second video, if only because you'll end up with a very large GIF at a frame-rate that's too high. You would be better off picking every other, or even every 3/4 frames from your video sample. Capturing images from video is also pretty well documented on iOS.
I recently created a library called Regift for converting videos to gifs on iOS. Hopefully it will help anyone coming to this in the future :)

Convert Dicom image to to jpg,png

I have to convert a DICOM image into any supportable format for UIImageView such as JPG, PNG, etc. Are there any frameworks to implement in iOS for iPad?
I found ITK useful to do this but still I don't know how use ITK to implement this.
The only opensource DICOM library I know of is Imebra; it claims support for Windows and OSX only, but as a C++ library I can't foresee any major difficulties with porting it to iOS.
There is one open source Lib "GDCM", you can check this ANS How to display DICOM files in a view on iPhone.
Even i have not tried my self, but seems to be right way to go.
By the way, have you tried what "Benjamin Mayo" answered ? was imebra usful to you ?

How to add Cartoon Color and Cartoon B&W filter effect on Image in iPhone [duplicate]

Is there any filters available in ios to convert a image to cartoonistic image like exactly in the above picture?
For a much faster solution than ImageMagick, you could use the GPUImageToonFilter from my GPUImage framework:
It combines Sobel edge detection with posterization of the image to give a good cartoon-like feel. As implemented in this framework, it's fast enough to run on realtime video from the iPhone's camera, and is probably at least an order of magnitude faster than something similar in ImageMagick. My framework's also a little easier to integrate with an iOS project than ImageMagick.
If you want more of an abstract look to the image, the GPUImageKuwaharaFilter converts images into an oil painting style, as I show in this answer.
Try to use imagemagick for iOS http://www.imagemagick.org/download/iOS/
Of course you need some serval hours how to use imagemagick for iOS.
But then you should also look at: http://www.fmwconcepts.com/imagemagick/cartoon/index.php
and maybe also on:
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=11140&start=0&st=0&sk=t&sd=a
This Core Image filter section in the iOS dev library, possibly combined with the script referenced by Jonas and a little luck, might get you where you're going. Not sure, having never used either of these technologies.

iphone add effects to images

Please tel me if there are apple libraries or 3party libraries available for adding effects such sepia greyscale glow comic book color pencil etc to images.
I guess this could help you :
http://code.google.com/p/simple-iphone-image-processing/
http://sourceforge.net/projects/photoshopframew/
https://github.com/esilverberg/ios-image-filters
Apple (as far as I know) does not have any image processing/manipulation libraries for the iOS released at the moment ... however this may change when SDK 5.0 is released.
As far as 3rd party image effect libraries the only one I have been able to locate is:
http://code.google.com/p/simple-iphone-image-processing/
which is a good but rather basic library with simple effects like edge detection, blur, and black and white.
You could also use this one: Filtrr for iOS
More than 50 filters are available in the following github source code....just follow the instructions to integrate in your project.github link is here .

iPhone, is there any drawing sketch framework library can be use?

I want build a sketch pad app on iPhone, I assume that this type app has already been developed long time , maybe some open source code can be use for this purpose ?
anyone can give tip on this field ?
Thanks ...
Take a look at the Sketch example for MacOS X Cocoa, then at UIBezierPath. Much of the drawing code should be easily portable with a regexp, although the UI and controller would need rewriting.