Bug 204620 - [patch update unbreak] graphics/php-magickwand
Summary: [patch update unbreak] graphics/php-magickwand
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-17 07:28 UTC by Kurt Jaeger
Modified: 2015-11-17 08:52 UTC (History)
2 users (show)

See Also:


Attachments
patch (1.59 KB, patch)
2015-11-17 07:28 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2015-11-17 07:28:32 UTC
Created attachment 163235 [details]
patch

- Add support for MagickStatisticImage() (reference
  http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22757).
- Fixes build with newer ImageMagick
- Fixes build when ImageMagick is installed in non-standard location
- Add support for MagickSetImageEndian().
- MagickWand for PHP no longer fails to build in ZTS mode.
Comment 1 Richard Toohey 2015-11-17 08:17:40 UTC
This builds and works in basic testing on amd64 and PHP 5.6.

> pkg info | grep magickw
php-magickwand-1.0.9_4         PHP extension to manipulate images

> pkg info | grep Image
ImageMagick-6.9.2.4,1          Image processing tools

Test was:

<?php

	$w=NewMagickWand();  
	MagickSetResolution($w,200,200);

	MagickReadImage($w,'logo-red.png');

	if (MagickGetImageWidth($w) > 1000) {
		$height=1000*MagickGetImageHeight($w)/MagickGetImageWidth($w);
		MagickResizeImage($w,1000,$height,MW_QuadraticFilter,1.0);	
	}

	MagickSetImageFormat($w,'jpg');

	$out=MagickWriteImage($w,'blob.jpg');
?>

Many thanks for the quick fix; not sure if you need any more information?
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-11-17 08:51:20 UTC
A commit references this bug:

Author: pi
Date: Tue Nov 17 08:51:03 UTC 2015
New revision: 401803
URL: https://svnweb.freebsd.org/changeset/ports/401803

Log:
  graphics/php-magickwand: unbreak, update 1.0.9 -> 1.0.9-2

  - Add support for MagickStatisticImage() (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22757).
  - Fixes build with newer ImageMagick
  - Fixes build when ImageMagick is installed in non-standard location
  - Add support for MagickSetImageEndian().
  - MagickWand for PHP no longer fails to build in ZTS mode.

  PR:		204620
  Reviewed by:	Richard Toohey <knightofthecode@gmail.com>

Changes:
  head/graphics/php-magickwand/Makefile
  head/graphics/php-magickwand/distinfo
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2015-11-17 08:52:27 UTC
Committed, thanks for testing.