Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

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

Owner: Nobody in particular
Requestors: TONYC [...]

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 [...]
From: tonyc [...]
Download (untitled) / with headers
text/plain 622b
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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to