Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Ok, can you try and use UIImageJPEGRepresentation even when using a .png image? Let me know if that works. Using such functions isn't the best way to get back the data from a UIImage, but rather one should dwell into Core Graphics to get it.
Let me know if using the other method works for you.
cloud wrote:
Ok, can you try and use UIImageJPEGRepresentation even when using a .png image? Let me know if that works. Using such functions isn't the best way to get back the data from a UIImage, but rather one should dwell into Core Graphics to get it.
Let me know if using the other method works for you.
~C
Hi,
I tried this,it doesnt work. But theres no error, the app just hangs. BTW, how can I access UIImage with core graphics. Do you have an example?
The links I posted a while back are quite old, and there must be newer versions that address some of the issues I was having. The project I was working on got scrapped, so we stopped looking for solutions and alternatives.
Depending on the size of the image, it was quite slow on an iPad which runs much faster than the 3GS. If you're dealing with small images it probably won't be too bad, but the performance was one of the main reasons the project was abandoned in the first place.
2010-10-22 22:01:48.492 IM_Test[80066:207] we're using JPEG compression
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
pthread_mutexattr_destroy$UNIX2003 called from function AllocateSemaphoreInfo in image IM_Test.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
open$UNIX2003 called from function ConfigureFileToStringInfo in image IM_Test.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
mmap$UNIX2003 called from function MapBlob in image IM_Test.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
munmap$UNIX2003 called from function UnmapBlob in image IM_Test.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
close$UNIX2003 called from function ConfigureFileToStringInfo in image IM_Test.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
strtod$UNIX2003 called from function GetMagickToken in image IM_Test.
everythings compiles fine but I get this exceptions! Any ideas? I downloaded the sample code and I run into this
error:
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
pthread_mutexattr_destroy$UNIX2003 called from function AllocateSemaphoreInfo in image OABlahBlah.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
open$UNIX2003 called from function ConfigureFileToStringInfo in image OABlahBlah.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
strtod$UNIX2003 called from function GetMagickToken in image OABlahBlah.
Ok, now add support for pthreads. Is there a Posix thread library available (e.g. -lpthread)? You can build ImageMagick without threads (e.g. add --without-threads to the configure script command).
magick wrote:Ok, now add support for pthreads. Is there a Posix thread library available (e.g. -lpthread)? You can build ImageMagick without threads (e.g. add --without-threads to the configure script command).
Could you give me already builded version without pthreads (or if you already added support pthreads to IM for iphone), because somehow I cant build it properly.
You can find the latest IM (6.6.6-4) compiled for iPhone on the ImageMagick FTP website (as linked in my signature) -- and works without issues for me on the latest iPhone SDK. Soon I will commit update to the script for compiling as well.