Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Script and instructions to compile imagemagick as a static library to use in any iPhone project
C Shell Objective-C
branch: master

This branch is 2 commits ahead, 24 commits behind marforic:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
IM_Test
.gitignore
README.textile
imagemagick_compile.sh

README.textile

Compiled downloads

You can grab the latest compiled ImageMagick directly from their ftp or any mirror.

There is always 2 packages for the compiled ImageMagick:

  • iPhoneMagick-VERSION-libs.zip
  • iPhoneMagick-VERSION.zip

The first one includes headers and compiled libraries that have been used to compile ImageMagick. Most users would need this one.

ImageMagick compiling script for iPhone OS and iPhone Simulator

To run the script:


./imagemagick_compile.sh VERSION

where VERSION is the version of ImageMagick you want to compile (i.e.: 6.6.8-5, svn, …)

This script will compile ImageMagick as a static library to be included in iPhone projects
Support for:

  • png
  • jpeg
  • tiff

Upon successful compilation a folder called “IMPORT_ME” will be created from where you start the script: you can import it into your XCode project

XCode project settings

After including everything into XCode please also make sure to have these settings (Build tab of the project information):

  • Other Linker Flags: -lMagickCore -lMagickWand -lz -lbz2 -ljpeg -lpng
  • Header Search Paths: $(SRCROOT) – make it Recursive
  • Library Search Paths: $(SRCROOT) – make it Recursive

On the lower left click on the small-wheel and select: Add User-Defined Setting

  • Key: OTHER_CFLAGS
  • Value: -Dmacintosh=1

Sample project

A more or less updated project is found in the IM_Test subfolder

Something went wrong with that request. Please try again.