Skip to content

Commit

Permalink
Version 6.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Aug 8, 2022
1 parent 11571af commit 4f8e63d
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ For more information, go to https://www.luigifab.fr/apijs and https://www.luigif

This repository is a releases mirror. To install the module, please use the composer key available in the documentation.

- Current version: 6.9.0 (07/07/2022)
- Current version: 6.9.1 (08/08/2022)
- Compatibility: OpenMage 19.x / 20.x / 21.x, PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1, Python 3.3+
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk)
Expand Down
4 changes: 2 additions & 2 deletions src/app/code/community/Luigifab/Apijs/etc/config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Created S/19/11/2011
* Updated M/22/03/2022
* Updated V/05/08/2022
*
* Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/openmage/apijs
Expand All @@ -20,7 +20,7 @@
<config>
<modules>
<Luigifab_Apijs>
<version>6.9.0</version>
<version>6.9.1</version>
</Luigifab_Apijs>
</modules>
<global>
Expand Down
10 changes: 8 additions & 2 deletions src/app/code/community/Luigifab/Apijs/lib/image.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
# -*- coding: utf8 -*-
# Created J/26/12/2013
# Updated M/05/07/2022
# Updated S/30/07/2022
#
# Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# Copyright 2020-2022 | Fabrice Creuzot <fabrice~cellublue~com>
Expand All @@ -26,7 +26,7 @@
quality = int(sys.argv[5]) if len(sys.argv) >= 6 else 0
fixed = len(sys.argv) >= 7 and sys.argv[6] == 'fixed'
except:
print("Usage: image.py source destination width height [quality=0=auto] [fixed]")
print("Usage: image.py source_file destination_file width_px height_px [quality=0:auto..100] [fixed]")
print("source: all supported format by python-pil (including animated gif/png/webp),")
print(" or all supported format by ffmpegthumbnailer,")
print(" or svg")
Expand Down Expand Up @@ -288,9 +288,15 @@ def saveJpg(dest, fileout, quality):
if imgext == 'GIF' and (same or ".gif" in fileout):
dest = resizeAnimatedGif(source, size, fixed)
saveGif(dest, fileout, quality)
elif imgext == 'GIF' and (same or ".webp" in fileout):
dest = resizeAnimatedGif(source, size, fixed)
saveWebp(dest, fileout, quality)
elif imgext == 'PNG' and (same or ".png" in fileout):
dest = resizeAnimatedPng(source, size, fixed)
savePng(dest, fileout, quality)
elif imgext == 'PNG' and (same or ".webp" in fileout):
dest = resizeAnimatedPng(source, size, fixed)
saveWebp(dest, fileout, quality)
elif imgext == 'WEBP' and (same or ".webp" in fileout):
dest = resizeAnimatedWebp(source, size, fixed)
saveWebp(dest, fileout, quality)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/skin/frontend/base/default/js/luigifab/apijs/apijs.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 4f8e63d

Please sign in to comment.