• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Image::Size Download

Image::Size

February 25, 2009
This software module implemented in Perl enables reading of the dimensional details of various image formats. It is compatible with popular image formats and allows efficient access to image attributes. The module can seamlessly integrate into different software applications.
Version 3.2
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Randy J. Ray
Image::Size is a Perl module that offers a variety of interfaces to determine the dimensions of an image in several popular formats. The library is based on the wwwis script created by Alex Knowles and further developed to include width and height parameters to image tags. The sizes are cached internally based on file name, allowing multiple calls on the same file to avoid repeated computations.

The module provides three interfaces: imgsize(), html_imgsize(), and attr_imgsize(). By default, only imgsize() is exported; the other interfaces must be imported. imgsize() returns a three-item list of the X and Y dimensions and image type of stream. If an error is encountered, undef is returned for the first two elements, and an error string is returned for the third.

html_imgsize() returns the width and height of stream pre-formatted as a single string 'width="X" height="Y"' suitable for addition into generated HTML IMG tags. If the underlying call to imgsize fails, undef is returned. The format returned is suitable for both HTML and XHTML.

attr_imgsize() returns the width and height of stream as part of a 4-element list useful for routines that use hash tables for the manipulation of named parameters, such as the Tk or CGI libraries. If the underlying call to imgsize fails, undef is returned.

The sort of data passed as stream can be one of three forms: string, scalar reference, or open file handle. If an ordinary scalar (string) is passed, it is assumed to be a file name and opened (if found) as the source of data. If the passed-in stream is a scalar reference, it is interpreted as pointing to an in-memory buffer containing the image data. If an open file handle is passed in, the file pointer will necessarily move but will be restored to its original position before subroutine end.

Overall, Image::Size offers a straightforward and efficient solution for determining the dimensions of an image in various formats. Its multiple interfaces make it a versatile tool for generating HTML or manipulating named parameters, and its internal caching ensures optimal performance.
What's New

Version 3.2: N/A

Free Download 151K
367
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    157
  2. Dvgrab 3.4
    94
  3. DynVPN 1.0
    83
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    76
  6. porm r2
    72
  7. Clewarecontrol 0.8
    71
  8. Hills 2.0
    71
  9. fuseftp 0.8
    70
  10. Java Games 1.0
    70

Related Downloads

QmailLdapAdmin
QmailLdapAdmin assists with managing the qmail-schema of LDAP. It is a helpful ...
GDOC
GDOC is a software tool that aids in documenting C code. It ...
Ubuntu Drupal
Drupal tools offered for Ubuntu's LoCo Teams facilitating seamless collaboration and communication ...
Tako
Tako is a programming language that follows Java-like syntax, supporting direct programming ...
rubySteak
rubySteak is a GTK 2 interface software that enables users to access ...
High Visibility Calculator
The High Visibility Calculator is designed to assist people with disabilities, with ...
CyaSSL
This software is a speedy, dual licensed application of SSL that is ...
Hymera
A Debian-based Italian Linux distribution.
Sugar on a Stick
Sugar Learning Platform implemented through USB for use with Fedora, offering a ...
CCux Linux
CCux Linux is an optimized GNU/Linux distribution created for i686 and advanced ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.