glfs/general/prog/python-dependencies/imagesize.xml

122 lines
3.5 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../../general.ent">
%general-entities;
<!ENTITY imagesize-download-http "https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-&imagesize-version;.tar.gz">
<!ENTITY imagesize-download-ftp " ">
<!ENTITY imagesize-md5sum "&imagesize-md5sum;">
<!ENTITY imagesize-size "1.2 MB">
<!ENTITY imagesize-buildsize "1.8 MB (with tests)">
<!ENTITY imagesize-time "less than 0.1 SBU (with tests)">
]>
<sect2 id="imagesize" xreflabel="imagesize-&imagesize-version;">
<title>Imagesize-&imagesize-version;</title>
<indexterm zone="imagesize">
<primary sortas="a-imagesize">imagesize</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to Imagesize Module</title>
<para>
The <application>imagesize</application> package analyzes image file
headers and returns the image size and DPI. It works with
JPEG/JPEG 2000/PNG/GIF/TIFF/SVG/Netpbm/WebP formats.
</para>
&lfs120_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&imagesize-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&imagesize-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &imagesize-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &imagesize-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &imagesize-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &imagesize-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Imagesize Dependencies</bridgehead>
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
<para role="optional">
<xref linkend="pytest"/> and
<xref linkend="requests"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of Imagesize</title>
<para> Build the module: </para>
&build-wheel;
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>&install-wheel; imagesize</userinput></screen>
<para>
The tests for this package are known to be broken.
To test the installation anyway, run <command>pytest</command>.
</para>
</sect3>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../../xincludes/pip3-cmd-explain.xml"/>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>None</seg>
<seg>
/usr/lib/python&python3-majorver;/site-packages/imagesize and
/usr/lib/python&python3-majorver;/site-packages/imagesize-&imagesize-version;.dist-info
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>