Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 74863
Status: new
Priority: 80/
Queue: Imager

People
Owner: Nobody in particular
Requestors: TONYC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: add mathod to expand width/height of an image
Date: Sat, 11 Feb 2012 10:52:05 +1100
To: bug-Imager [...] rt.cpan.org
From: tonyc [...] cpan.org
While this is conceptually simple, it's complex enough that reimplementing it time is wasteful. Possible signature: my $new = $im->expand ( xsize => $new_width, # default to old width ysize => $new_height, # default to old height bg => $color # default to black channels => $channels, # default to input depth bits => $bits, # default to input bits type => $type, # default to input type, halign => 'left|centre|center|right', # default center valign => 'top|centre|center|right', # default center ); If $new_width <= old width && $new_height <= old height returns the original image. Tony