1 Perl Module Image::Size Change History 2 3 Image::Size is a simple library that allows the 4 fetching of image size information from files 5 in a wide variety of common (and not-so-common) 6 formats. 7 83.300 Saturday February 28, 2015, 08:44:22 AM -0800 9 10 * lib/Image/Size.pm 11 * t/all.t 12 * t/old-os2.bmp (added) 13 Add support for old OS/2 version of BMP header (Geoff Richards). 14 15 * lib/Image/Size.pm 16 Typo fixes (David Steinbrunner). 17 18 * lib/Image/Size.pm 19 Avoid a sprintf() warning in Perl 5.21. Perl 5.21 introduces a 20 warning for redundant arguments to s?printf(), so sprintf("%d", 21 1, 2) would warn. This commit silences that warning by passing 22 sprintf the exact number of arguments that it expects (Brian 23 Fraser). 24 25 * lib/Image/Size.pm 26 Added =encoding utf8 to pod - the accented character was 27 causing a pod error (Neil Bowers). 28 29 * lib/Image/Size.pm 30 Added Z<> to the =item [012] to resolve pod warning. You can't 31 have =item 0, so the way round this seems to be to add a Z<> 32 (zero width space) before each digit (Neil Bowers). 33 34 * lib/Image/Size.pm 35 Added link to github repo to doc (Neil Bowers). 36 37 * lib/Image/Size.pm 38 RT #41238: Applied modified version of patch from user to fix a 39 die problem with unpack on truncated files. 40 41 * lib/Image/Size.pm 42 * t/1.sm.webp (added) 43 * t/all.t 44 * t/move.cur (added) 45 * t/tux.ico (added) 46 Add support for WEBP, ICO and CUR file types (Baldur 47 Kristinsson). 48 49 * lib/Image/Size.pm 50 Fix some perlcritic issues. 51 523.232 Monday May 28, 2012, 05:20:00 PM -0700 53 54 * lib/Image/Size.pm 55 Removed the "!" flag in pack template for EMF. It was not 56 needed and it broke on earlier Perls. 57 583.231 Wednesday May 23, 2012, 11:30:00 PM -0700 59 60 * lib/Image/Size.pm 61 Small change to swfmxsize for short-buffer issues. 62 63 * lib/Image/Size.pm 64 Multiple changes in this commit: Abandoned AutoLoader; moved 65 POD to the end of the file now that all the per-format 66 subroutines are part of the file-proper; fixed cases where lack 67 of ImageMagick would cause the error message to be overwritten. 68 69 * t/all.t 70 * t/kazeburo-bar.jpg (added) 71 New test (and image) for JPG tag-offset issue. 72 73 * lib/Image/Size.pm 74 Applied patch from github user kazeburo: bug fix for some jpeg 75 files 76 77 * imgsize 78 Fixed so that default output now catches errors. Previously, 79 you would get an "undefined" warning if there was an error in 80 parsing/sizing the input file. 81 82 * lib/Image/Size.pm 83 Turns out the 4 bounding-box ints for EMF are signed. 84 853.230 Sunday August 29, 2010, 04:00:00 PM -0700 86 87 * imgsize 88 * lib/Image/Size.pm 89 perlcritic clean-ups from new rules. 90 91 * lib/Image/Size.pm 92 * t/Test_emf_small.emf (added) 93 * t/all.t 94 RT #59995: Added support for Windows Enhanced Metafile Format 95 (EMF). 96 97 * t/00_load.t (deleted) 98 * t/01_pod.t (deleted) 99 * t/02_pod_coverage.t (deleted) 100 * t/03_meta.t (deleted) 101 * t/04_minimumversion.t (deleted) 102 * t/05_critic.t (deleted) 103 * xt/00_load.t (added) 104 * xt/01_pod.t (added) 105 * xt/02_pod_coverage.t (added) 106 * xt/03_meta.t (added) 107 * xt/04_minimumversion.t (added) 108 * xt/05_critic.t (added) 109 Move the author/distro-sanity tests to an "xt" directory. 110 1113.221 Sunday April 25, 2010, 02:10:00 PM -0700 112 113 * imgsize 114 * lib/Image/Size.pm 115 Large-scale code and documentation clean-up based on perlcritic 116 and visual review. 117 1183.220 Sunday November 8, 2009, 05:45:00 PM -0800 119 120 * lib/Image/Size.pm 121 Small fix to the regex for detecting GIFs, per Slaven Rezic. 122 1233.210 Wednesday October 21, 2009, 06:50:00 PM -0700 124 125 * t/magick.t 126 Removed a stray colon causing errors with some Perl versions. 127 128 * t/00_load.t (added) 129 * t/00_signature.t (deleted) 130 * t/01_pod.t (added) 131 * t/02_pod_coverage.t (added) 132 * t/03_meta.t (added) 133 * t/04_minimumversion.t (added) 134 * t/05_critic.t (added) 135 * t/magick.t 136 * t/pod.t (deleted) 137 * t/pod_coverage.t (deleted) 138 Removed useless signature test, added QA tests, removed a 139 duplicate test. 140 141 * lib/Image/Size.pm 142 Moved around some conditionally-needed libs to delay loading 143 until/unless needed. Also made a small fix per Perl::Critic. 144 1453.2 Monday February 23, 2009, 05:00:00 AM -0800 146 147 * lib/Image/Size.pm 148 * t/all.t 149 Make the package buildable in a pure-Perl software stack. Per 150 RT ticket #42930, make Compress::Zlib optional, so that those 151 who do not need it are not required to install it. Updated the 152 test around the compressed-SWF file to skip if Compress::Zlib 153 is absent. 154 155 * Build.PL (restored) 156 * ChangeLog (deleted) 157 * ChangeLog.xml (added) 158 * MANIFEST (deleted) 159 * Makefile.PL (deleted) 160 * README.Win32 (deleted) 161 * etc/ChangeLogML.xsd (added) 162 Making large-scale house-keeping changes to the build/dist 163 process. Replace ChangeLog (plain-text) with a ChangeLogML file 164 created from the CVS/SVN history and hand-adjusted; add the XSD 165 for ChangeLogML; restore Build.PL and heavily enhance; and 166 remove README.Win32, Makefile.PL and MANIFEST. 167 168 * lib/Image/Size.pm 169 Per RT ticket #43452, make the cache visible outside the 170 lexical scope of the module This allows the hash to be used 171 with packages like IPC::Shareable or IPC::MM to enable sharing 172 the cache between processes. Added extra documentation of this, 173 and a new section describing approaches to cache-sharing. 174 175 Transaction revision: 136 176 * imgsize 177 * lib/Image/Size.pm 178 Fix URL/specification of the license info for LGPL. 179 1803.1.1 Monday February 18, 2008, 06:37:36 AM UTC 181 182 * Build.PL, revision 134 183 Misspelled a prereq name. 184 1853.1 Friday October 5, 2007, 10:19:33 AM UTC 186 187 * Makefile.PL, revision 130 188 Restored for users who don't have Module::Build installed. 189 190 * lib/Image/Size.pm, revision 129 191 Small patch from n@shaplov.ru to fix CWS-related error. 192 193 * lib/Image/Size.pm, revision 128 194 Changed the copyright info and the licensing. Added COPYRIGHT 195 and LICENSE blocks to the pod. 196 197 Transaction revision: 127 198 * MANIFEST 199 * META.yml (deleted) 200 Removing META.yml and SIGNATURE from permanent place in 201 MANIFEST. Removing META.yml from repo. 202 2033.01 Wednesday October 3, 2007, 10:08:20 AM UTC 204 205 * t/pass-1_s.png, revision 121 206 Trying to fix MIME 207 208 Transaction revision: 120 209 * t/8.swf 210 * t/bexjdic.tif 211 * t/letter_T.jpg 212 * t/lexjdic.tif 213 * t/pak38.jpg 214 * t/pass-1_s.png 215 * t/test.gif 216 * t/xterm.bmp 217 * t/yasp.swf 218 MIME types 219 2203.0 Thursday September 14, 2006, 03:10:50 AM UTC 221 222 * t/pod.t 223 * t/pod_coverage.t 224 Added test suites for POD correctness and POD coverage. 225 226 * Size.pm 227 Implemented and documented a flag called 228 $Image::Size::GIF_BEHAVIOR that controls whether the GIF code 229 returns the screensize, the first sub-image or the largest of 230 the sub-images. 231 232 * MANIFEST 233 * Size.pm 234 * t/8.swf (added) 235 * t/all.t 236 Applied a patch from mrj@mrj.spb.ru to fix usage of the 237 Compress::Zlib module in the handling of compressed flash 238 files. Added a new SWF file to test this, and added reference 239 to the file in MANIFEST and t/all.t. 240 241 * MANIFEST 242 * Makefile.PL 243 * Size.pm 244 * t/magick.t (added) 245 Delay Image::Magick loading until it is needed. (Mark 246 Stosberg). Add support for Graphics::Magick as an alternative 247 to Image::Magick. If either Graphics::Magick or Image::Magick 248 is loaded into memory that module will be used. Otherwise, they 249 are both tried to be loaded, with Graphics::Magick being tried 250 first. (Mark Stosberg). This patch also adds a new test suite, 251 t/magick.t, to the distribution and modifies both MANIFEST and 252 Makefile.PL (to add a build-dependancy on Test::More). 253 254 * t/all.t 255 With Test::More now required for building, converted t/all.t to 256 use it. 257 2582.992 Tuesday July 22, 2003, 12:00:00 AM UTC 259 260 * Size.pm, revision 116 261 Added support for Flash 6/FlashMX. 262 2632.991 Friday January 3, 2003, 09:09:39 AM UTC 264 265 * Size.pm, revision 111 266 Bumped version number and moved the trailing "1;" for 267 safety-sake. 268 269 * imgsize, revision 110 270 Way-long-overdue code cleanup. 271 272 * Size.pm, revision 109 273 Small change in the block that sets up read from a scalar ref, 274 to avoid warnings about undef values (in case $stream is a 275 reference to an undef value). 276 2772.99 Saturday May 4, 2002, 08:23:42 AM UTC 278 279 * Size.pm, revision 106 280 Applied two patches from Ville Skyttä <ville.skytta@iki.fi>, 281 providing MNG and Image::Magick support. 282 2832.98 Saturday March 2, 2002, 08:36:07 PM UTC 284 285 * Size.pm, revision 104 286 Bumped the version number. Wouldn't have to keep remembering 287 this if I'd move it to the Makefile.PL. 288 289 * Size.pm, revision 103 290 Fixed some documentation issues and a small buglet in an error 291 message. 292 293 * README.Win32, revision 102 294 Small change to step #2 295 2962.97 Thursday February 28, 2002, 07:58:43 AM UTC 297 298 * Size.pm, revision 99 299 Fixed some lingering tsoft.com e-mail addresses, cleared up the 300 docs per Jeff Friedl's suggestion, moved the call to 301 File::Spec->catpath() so that it only gets called when cacheing 302 is still on. 303 3042.96 Tuesday November 20, 2001, 11:39:43 PM UTC 305 306 * Size.pm, revision 96 307 Silly typo in PCD code 308 3092.95 Sunday November 11, 2001, 11:42:48 AM UTC 310 311 * Size.pm, revision 94 312 Added manual disabling of the cache, and added support for PCD 313 images. 314 3152.94 Wednesday September 19, 2001, 03:27:20 AM UTC 316 317 * Size.pm, revision 91 318 Corrected a bug in psdsize(), credited source of the PSD test 319 image, and bumped the version number. 320 321 * t/all.t, revision 90 322 Added test for PSD code, using recently-supplied image 323 324 * MANIFEST, revision 89 325 Added entry for the PSD test file 326 327 * t/468x60.psd, revision 87 (added) 328 Test file for PSD (PhotoShop) support 329 330 * Makefile.PL, revision 86 331 Changes to the name of the template spec file and the generated 332 spec file 333 334 Transaction revision: 85 335 * Image-Size.spec.in (deleted) 336 * spec.in (added) 337 Renamed this file 338 339 * Makefile.PL, revision 84 340 Adapted parts of the Perl-RPM Makefile.PL to enable building of 341 RPM and SRPM files. This version uses an external template 342 rather than embedding it under the __DATA__ token. 343 344 * Image-Size.spec.in, revision 83 (added) 345 Basic RPM specfile template to allow for building a noarch RPM 346 and SRPM for this package. 347 3482.93 Friday April 13, 2001, 08:55:11 AM UTC 349 350 * t/all.t, revision 80 351 Added test for Flash support 352 353 * MANIFEST, revision 79 354 Added test file for Flash support 355 356 * Size.pm, revision 78 357 Forgot to credit Dmitry in the docs. 358 359 * Size.pm, revision 77 360 Added code from Dmitry Dorofeev <dima@yasp.com> to handle 361 ShockWave/Flash files. 362 363 * t/yasp.swf, revision 76 (added) 364 Sample Flash file from Dmitry Dorofeev <dima@yasp.com> 365 3662.92 Sunday March 11, 2001, 10:56:01 PM UTC 367 368 * Size.pm, revision 72 369 Manually added a patch from Dan Klein to close files that 370 imgsize opens. 371 3722.91 Friday December 8, 2000, 08:20:34 AM UTC 373 374 Transaction revision: 69 375 * Size.pm 376 * imgsize 377 Added copyright notice so that Debian could use the module 378 379 Transaction revision: 68 380 * MANIFEST 381 * Makefile.PL 382 Reflect change to imgsize script 383 384 Transaction revision: 67 385 * imgsize (added) 386 * imgsize.PL (deleted) 387 Changed from imgsize.PL to plain imgsize, thanks to MakeMaker 388 features 389 3902.904 Tuesday November 28, 2000, 08:10:05 AM UTC 391 392 * Makefile.PL, revision 65 393 Added PREREQ_PM clause for detecting File::Spec 394 395 * Size.pm, revision 64 396 Bumped version number for CPAN 397 398 * ANNOUNCE, revision 62 (deleted) 399 Removed from the distribution 400 4012.903 Friday April 28, 2000, 02:56:13 AM UTC 402 403 Transaction revision: 60 404 * Size.pm 405 Minor fix from CPAN Testers Group for workability on Macs 406 4072.902 Wednesday April 26, 2000, 07:21:04 AM UTC 408 409 * Size.pm, revision 57 410 Worked on the regular expressions that are used on the 411 text-based formats, in hopes of further smoothing out the rift 412 between UNIX and non-UNIX systems. Added use of Cwd. Filenames 413 passed in are prepended with the current dir if they aren't 414 already absolute pathnames. This was to fix a subtle problem 415 where different files with the same relative names (referenced 416 from different directories) would confuse the cache. Added the 417 image type to the cached data. Previously, only dimensions were 418 cached. Now, a cache-hit returns the same triple returned 419 originally. Also added the file's modification-time to the 420 cache, as the (growing!) use of Image::Size in Apache mod_perl 421 environments found that if an image is changed, the cache won't 422 notice. Now it does. Added recognition of thumbnail-format pics 423 from the popular viewer XV. The value of image type for these 424 is the string "XV". Integrated a patch that makes html_imgsize 425 generate tags that are XHTML- compliant. Same patch also caught 426 a few doc bugs that I'd missed. 427 428 * MANIFEST, revision 55 429 Added ChangeLog 430 431 * ChangeLog, revision 54 (added) 432 Change history moved here from README 433 434 * MANIFEST, revision 53 435 Changed dave.jpg to pak38.jpg 436 437 * t/all.t, revision 52 438 Updated html_imgsize test and replaced image for test 6 439 440 * t/pak38.jpg, revision 51 (added) 441 GIF-named-JPG to replace dave.jpg 442 443 * t/dave.jpg, revision 50 (deleted) 444 corrupted file 445 446 * README.Win32, revision 47 (added) 447 A basic step-by-step for those whose Perl lacks MakeMaker 448 support (generally Win-based systems). 449 450 Transaction revision: 46 451 * t/bexjdic.tif (added) 452 * t/dave.jpg (added) 453 * t/letter_N.ppm (added) 454 * t/letter_T.jpg (added) 455 * t/lexjdic.tif (added) 456 * t/pass-1_s.png (added) 457 * t/spacer50.xbm (added) 458 * t/test.gif (added) 459 * t/xterm.bmp (added) 460 * t/xterm.xpm (added) 461 Initial check-in, files had been released in previous versions 462 but were not being tracked. 463 464 * imgsize.PL, revision 45 465 Changed a lingering uswest.com address to the current. 466 4672.901 Wednesday March 10, 1999, 12:28:00 PM UTC 468 469 Transaction revision: 44 470 * ANNOUNCE 471 * README 472 * Size.pm 473 Change the version number for this release due to CPAN treating 474 2.10 as less than 2.9. 475 4762.10 Wednesday March 10, 1999, 08:37:00 AM UTC 477 478 * Size.pm, revision 42 479 Moved some things around, and added two significant changes: no 480 longer uses IO::File internally (and is also more lax on 481 whether a passed-in FH is specifically from that class) and is 482 now fully strict-clean (no longer strict-refs dirty). 483 4842.9 Wednesday December 9, 1998, 09:10:11 AM UTC 485 486 * Size.pm, revision 40 487 Four changes: fix to GIFs that are GIF87 but have GIF98a-style 488 indicators; fix byte-ordering problem in bmpsize(); fix 489 eol-condition in the PPM pattern for earlier Win32 builds; and 490 (hopefully) addressed MacOS in that last adjustment, as well. 491 492 * Makefile.PL, revision 39 493 Added attributes to the WriteMakefile call for ActiveState PPM 494 (only done for Perl 5.005 and later). 495 496 * imgsize.PL, revision 38 497 Added some docs and better error-handling. 498 4992.8 Monday December 7, 1998, 10:18:44 AM UTC 500 501 * t/all.t, revision 37 502 Added a test for the new BMP support. 503 504 * Size.pm, revision 36 505 Added support for BMP files, changed VERSION to 2.8. 506 5072.7 Friday August 7, 1998, 08:35:47 AM UTC 508 509 * Size.pm, revision 33 510 Corrected numerous documentation errors and make the base 511 imgsize routine return a void context if called in a void 512 context. 513 514 Sunday January 25, 1998, 09:29:14 AM UTC 515 516 * t/all.t, revision 31 517 Incorporate changes from Cloyce Spradling that were 518 accidentally left out of 2.5. 519 520 * Size.pm, revision 30 521 Fixed some problems with reading of XPM and XBM headers. In the 522 case of XPM, it was a matter of the key line having a third 523 pair of numbers. In the case of XBM, comments at the head of an 524 XBM file could keep the read-in buffer from extracting enough 525 data (fixed by upping the read size from 160 to 1024). 526 5272.5 Wednesday December 24, 1997, 05:19:00 PM UTC 528 529 Transaction revision: 28 530 * ANNOUNCE 531 * MANIFEST 532 * README 533 * Size.pm 534 Added support for TIFF images and two test cases. Many thanks 535 to Cloyce Spradling <cloyce@headgear.org> for both the code 536 patches and the test images. 537 5382.4 Tuesday September 2, 1997, 07:36:54 PM UTC 539 540 * Size.pm, revision 26 541 Fixed tiny bug in jpeg code that failed to return "JPG" as the 542 3rd element. Figures someone would actually use that feature... 543 5442.3 Monday April 21, 1997, 06:34:53 PM UTC 545 546 * Size.pm, revision 24 547 Fixed usage of AutoLoader to 5.004 standards and fixed glitch 548 in XPM regex. 549 5502.2 Thursday January 16, 1997, 10:25:10 PM UTC 551 552 * Makefile.PL, revision 23 553 Fixed it so that the imgsize script gets removed for make clean 554 or make realclean. 555 556 * Size.pm, revision 22 557 Small patch to set binmode for OS/2, etc. that need it. Also 558 change to gifsize to clean up -w noise from new lexical-related 559 warnings (in this case, a reference to $stream might not have 560 been properly shared). 561 5622.1 Friday November 29, 1996, 05:25:00 PM UTC 563 564 * Size.pm 565 Added in changes to the error handling that were meant for 2.0. 566 Fixed a bug in attr_imgsize caused by the new return format. 567 5682.0 Monday November 25, 1996, 01:33:00 PM UTC 569 570 * README, revision 19 571 Notation of the changed error syntax. 572 573 * Size.pm, revision 18 574 Image::Size 2.0 package: better GIF, JPG and PNG handling. 575 Added PPM handling. No longer uses filenames to type the data. 576 Operates on memory and file- handles as well as filenames. 577 578 * t/all.t, revision 16 579 New tests for new formats, new error reporting. 580 581 * Makefile.PL, revision 15 582 Specified GNU zip as compressor. 583 5841.2 Friday September 6, 1996, 03:31:57 PM UTC 585 586 * MANIFEST, revision 11 587 Changed imgsize to imgsize.PL (from patch by Bernd Leibing 588 <bernd.leibing@rz.uni-ulm.de>) 589 590 * imgsize.PL, revision 10 591 Revised by Bernd Leibing <bernd.leibing@rz.uni-ulm.de> to use 592 var substitution for things like the start-up line. 593 594 * Size.pm, revision 9 595 Assignment of $Image::Size::revision caused an error due to q//. 596 5971.1 Wednesday September 4, 1996, 09:26:25 PM UTC 598 599 Transaction revision: 7 600 * ANNOUNCE (added) 601 * imgsize.PL (added) 602 Initial revision 603 604 * Makefile.PL, revision 5 605 Added imgsize, a simple script that sizes images from the 606 command-line. 607 608 * Size.pm, revision 4 609 Fixed a bug in jpegsize and added some clarity to docs and 610 comments. 611 6121.0 Tuesday August 6, 1996, 10:24:38 PM UTC 613 614 Transaction revision: 3 615 * MANIFEST (added) 616 * Makefile.PL (added) 617 * README (added) 618 * Size.pm (added) 619 * t/all.t (added) 620 Initial commit of the core project files. 621 622# Generated on Saturday February 28, 2015, 09:00:55 AM -0800 623# Using changelog2x/0.11, App::Changelog2x/0.11, XML::LibXML/2.0117, 624# XML::LibXSLT/1.92, libxml/2.9.0, libxslt/1.1.28 (with exslt) 625# XSLT sources: 626# $Id: changelog2text.xslt 8 2009-01-19 06:46:50Z rjray $ 627# $Id: common-text.xslt 8 2009-01-19 06:46:50Z rjray $ 628# $Id: common.xslt 4 2009-01-07 13:02:06Z rjray $ 629