source: trunk/gsdl/perllib/cpan/auto/Image/Size/psdsize.al@ 13983

Last change on this file since 13983 was 13983, checked in by lh92, 17 years ago

Added for Realistic Book Project

  • Property svn:keywords set to Author Date Id Revision
File size: 611 bytes
Line 
1# NOTE: Derived from lib/Image/Size.pm.
2# Changes made here will be lost when autosplit is run again.
3# See AutoSplit.pm.
4package Image::Size;
5
6#line 1069 "lib/Image/Size.pm (autosplit into blib/lib/auto/Image/Size/psdsize.al)"
7# psdsize: determine the size of a PhotoShop save-file (*.PSD)
8sub psdsize
9{
10 my $stream = shift;
11
12 my ($x, $y, $id) = (undef, undef, "Unable to determine size of PSD data");
13 my ($buffer);
14
15 $buffer = &$read_in($stream, 26);
16 ($y, $x) = unpack("x14NN", $buffer);
17 $id = 'PSD' if (defined $x and defined $y);
18
19 ($x, $y, $id);
20}
21
22# end of Image::Size::psdsize
231;
Note: See TracBrowser for help on using the repository browser.