summaryrefslogtreecommitdiff
path: root/Image/Magick.pm
blob: c7eeb521c9df13bdffe252d99e209b4b2d0f00e3 (plain)
  1. # <Magick.pm> - ImageMagick compatibility wrapper for GraphicsMagick
  2. #
  3. # This package exports GraphicsMagick Perl bindings in the traditional
  4. # ImageMagick/PerlMagick namespace, which allows Perl scripts to change
  5. # from ImageMagick to GraphicsMagick without any code changes.
  6. #
  7. # Copyright (c) 2006 Daniel Kobras <kobras@debian.org>
  8. #
  9. # Redistribution and use in source and binary forms, with or without
  10. # modification, are permitted provided that the following conditions
  11. # are met:
  12. # 1. Redistributions of source code must retain the above copyright
  13. # notice, this list of conditions and the following disclaimer.
  14. # 2. Redistributions in binary form must reproduce the above copyright
  15. # notice, this list of conditions and the following disclaimer in the
  16. # documentation and/or other materials provided with the distribution.
  17. #
  18. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  19. # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  20. # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  21. # AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  22. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  23. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  24. # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  25. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  26. # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  27. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. package Image::Magick;
  29. use vars (@ISA);
  30. # Workaround for http://bugs.debian.org/622591
  31. eval q{use Search::Xapian};
  32. require Graphics::Magick;
  33. @ISA = qw(Graphics::Magick);
  34. 1;
  35. __END__
  36. =head1 NAME
  37. Image::Magick - call GraphicsMagick routines with ImageMagick interface
  38. =head1 SYNOPSIS
  39. use Image::Magick
  40. =head1 DESCRIPTION
  41. This Perl wrapper provides GraphicsMagick bindings in the namespace
  42. traditionally used by ImageMagick's PerlMagick extension. It is used
  43. to turn GraphicsMagick into a drop-in replacement for ImageMagick in
  44. Perl scripts. It is recommended that scripts are ported to use
  45. GraphicsMagick natively instead of using this compatibility wrapper.
  46. GraphicsMagick was forked from ImageMagick version 5.5.2, and has since been
  47. developed with an emphasis on interface stability. Therefore, Perl scripts
  48. supporting ImageMagick version 5.5.2 can usually be ported to GraphicsMagick
  49. with little effort.
  50. =head1 AUTHOR
  51. Daniel Kobras <kobras@debian.org>
  52. =head1 SEE ALSO
  53. Graphics::Magick(3pm), perl(1).
  54. =cut