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

122 lines
3.5 KiB
XML
Raw Normal View History

2024-01-20 05:35:53 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!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;
2022-10-14 21:03:28 +08:00
<!ENTITY imagesize-download-http "https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-&imagesize-version;.tar.gz">
2022-09-30 22:25:05 +08:00
<!ENTITY imagesize-download-ftp " ">
<!ENTITY imagesize-md5sum "&imagesize-md5sum;">
2022-09-30 22:25:05 +08:00
<!ENTITY imagesize-size "1.2 MB">
<!ENTITY imagesize-buildsize "1.8 MB (with tests)">
<!ENTITY imagesize-time "less than 0.1 SBU (with tests)">
]>
2022-10-03 04:50:11 +08:00
<sect2 id="imagesize" xreflabel="imagesize-&imagesize-version;">
2022-10-03 04:50:11 +08:00
<title>Imagesize-&imagesize-version;</title>
2022-09-30 22:25:05 +08:00
<indexterm zone="imagesize">
<primary sortas="a-imagesize">imagesize</primary>
</indexterm>
<sect3 role="package">
2022-09-30 22:25:05 +08:00
<title>Introduction to Imagesize Module</title>
<para>
2022-10-14 21:03:28 +08:00
The <application>imagesize</application> package analyzes image file
2022-09-30 22:25:05 +08:00
headers and returns the image size and DPI. It works with
JPEG/JPEG 2000/PNG/GIF/TIFF/SVG/Netpbm/WebP formats.
</para>
2023-08-16 06:21:31 +08:00
&lfs120_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download (HTTP): <ulink url="&imagesize-download-http;"/>
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download (FTP): <ulink url="&imagesize-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download MD5 sum: &imagesize-md5sum;
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Download size: &imagesize-size;
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Estimated disk space required: &imagesize-buildsize;
</para>
</listitem>
<listitem>
<para>
2022-09-30 22:25:05 +08:00
Estimated build time: &imagesize-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Imagesize Dependencies</bridgehead>
<bridgehead renderas="sect5">Optional (for testing)</bridgehead>
<para role="optional">
2023-02-15 10:49:41 +08:00
<xref linkend="pytest"/> and
<xref linkend="requests"/>
</para>
</sect3>
<sect3 role="installation">
2022-09-30 22:25:05 +08:00
<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>
2023-08-18 03:39:52 +08:00
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>
2022-09-30 22:25:05 +08:00
<seg>None</seg>
<seg>None</seg>
<seg>
2022-09-30 22:25:05 +08:00
/usr/lib/python&python3-majorver;/site-packages/imagesize and
/usr/lib/python&python3-majorver;/site-packages/imagesize-&imagesize-version;.dist-info
</seg>
</seglistitem>
</segmentedlist>
2022-09-30 22:25:05 +08:00
</sect3>
</sect2>