RECENT POSTS
- Introduction to FreeBSD Security Best Practices
- Working with Package Management in FreeBSD
- Understanding FreeBSD Security Advisories and Updates
- Troubleshooting Common System Administration Issues in FreeBSD
- Tips for Hardening FreeBSD to achieve System Protection
- Setting Up DHCP Server in FreeBSD
- Secure User and Group Management in FreeBSD Systems
- Secure Remote Access with SSH in FreeBSD
- Optimizing System Performance in FreeBSD
- Network Packet Capture with tcpdump in FreeBSD
- All posts ...
Do you have GDPR compliance issues ?
Check out Legiscope a GDPR compliance software, that will save you weeks of work, automating your documentation, the training of your teams and all processes you need to keep your organisation compliant with privacy regulations
P5-image-size
Jul 20, 2023
Perl5 module to determine the size of images in several common formats
ImageSize is a library based on the image-sizing code in the wwwimagesize script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to IMG directives. ImageSize has generalized that code to return a raw X, Y pair, and included wrappers to pre-format that output into either HTML or a set of attribute pairs suitable for the CGI.pm library by Lincoln Stein. Currently, ImageSize can size images in XPM, XBM, GIF, JPEG and PNG formats.
I did this because my WWW server generates a lot of documents on demand rather than keeping them in static files. These documents not only use directional icons and buttons, but other graphics to annotate and highlight sections of the text. Without size attributes, browsers cannot render the text of a page until the image data is loaded and the size known for layout. This library enables scripts to size their images at run-time and include that as part of the generated HTML. Or for any other utility that uses and manipulates graphics. The idea of the basic interface + wrappers is to not limit the programmer to a certain data format.
- Older
- Newer
Checkout these related ports:
- Zphoto - Zooming photo album generator
- Zint - Barcode generator (library and utilities)
- Zimg - Image-generator that uses ASCII input files to create PNGs/EDFs
- Zgv - Graphics viewer for SVGAlib
- Zbar - ZBar barcode reader
- Zathura - Customizable lightweight pdf viewer
- Zathura-ps - PostScript support for Zathura PDF viewer
- Zathura-pdf-poppler - Poppler render PDF plugin for Zathura PDF viewer
- Zathura-pdf-mupdf - MuPDF render PDF plugin for Zathura PDF viewer
- Zathura-djvu - DjVu support for zathura
- Zathura-cb - Comic book plugin for Zathura PDF viewer
- Yukon - Real-time capture tool for OpenGL applications
- Yed - Editor for graphs and diagrams
- Yafaray - Montecarlo raytracing engine
- Yacreader - Yet another comic reader