"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "imgsizer" between
imgsizer-2.10.tar.gz and imgsizer-2.11.tar.gz

About: imgsizer auto-generates correct Netscape-style WIDTH and HEIGHT parameters for HTML IMG tags (allowing the text portions of the page to load much faster).

imgsizer  (imgsizer-2.10):imgsizer  (imgsizer-2.11)
#!/usr/bin/python #!/usr/bin/python3
# #
# imgsizer -- correct image sizes in WWW pages # imgsizer -- correct image sizes in WWW pages
# by Eric S. Raymond <esr@thyrsus.com> # by Eric S. Raymond <esr@thyrsus.com>
# #
# Fix up IMG tags in given documents to contain correct sizes. # Fix up IMG tags in given documents to contain correct sizes.
# #
# This code runs under either Python 2 or Python 3. Keep it that way! # This code runs under either Python 2 or Python 3. Keep it that way!
# #
# SPDX-License-Identifier: BSD-2-clause # SPDX-License-Identifier: BSD-2-clause
# #
skipping to change at line 92 skipping to change at line 92
try: try:
from subprocess import getstatusoutput from subprocess import getstatusoutput
except ImportError: except ImportError:
from commands import getstatusoutput from commands import getstatusoutput
try: try:
from urllib.request import urlretrieve from urllib.request import urlretrieve
except ImportError: except ImportError:
from urllib import urlretrieve from urllib import urlretrieve
version = "2.10" version = "2.11"
splash = """imgsizer version %s, Eric S. Raymond <esr@thyrsus.com> splash = """imgsizer version %s, Eric S. Raymond <esr@thyrsus.com>
See <http://www.catb.org/~esr/software.html> for updates.""" See <http://www.catb.org/~esr/software.html> for updates."""
usage = """Usage: imgsizer [OPTIONS] [HTML File] usage = """Usage: imgsizer [OPTIONS] [HTML File]
Options: Options:
-V, --version -V, --version
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)