21491 Posts in 5783 Topics by 2621 members
General Questions
SilverStripe Forums » General Questions » Optional integration with ImageMagick as a new image manipulation backend - How
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 244 Views |
-
Optional integration with ImageMagick as a new image manipulation backend - How

30 January 2013 at 11:26am
Guys
3.1 boasts the ability to use Imagemagick as in "Optional integration with ImageMagick as a new image manipulation backend" but how? I cant see a config anywhere except perhaps in Image.php:
static $backend = "GDBackend";
There is no other reference to Imagemagick or a suitable "convert" in the code that I can find.
Julian
-
Re: Optional integration with ImageMagick as a new image manipulation backend - How

2 February 2013 at 3:21pm
Add to _config.php this line:
if(class_exists('Imagick')){Image::set_backend('ImagickBackend');}it has also few issues so here's a patch:
https://github.com/a2nt/sapphire/commit/ef3613c8ff95b7e278cb1daa2266edf63772ec2b -
Re: Optional integration with ImageMagick as a new image manipulation backend - How

3 February 2013 at 12:41pm Last edited: 3 February 2013 1:01pm
I didn't try looking for imagick as a string! Thanks for that.
Any clues as to how to get the image class to make a thumbnail from a pdf? Imagick does that fine but the default in SS is an icon
Perhaps hack the definition in File.php
Since if imagick is used people will always want pdf thumbs this should be standard.
Julian
-
Re: Optional integration with ImageMagick as a new image manipulation backend - How

4 February 2013 at 2:56am
Agreed, but it's still buggy as u can see in framework/filesystem/ImagickBackend.php some variables like $destX and $destY aren't set. I guess it's just draft version.
| 244 Views | ||
|
Page:
1
|
Go to Top |

