[geany/geany-themes] aacc91: Change thumbnail size in the index to 128x128 pixels (#32)
Matthew Brush
git-noreply at xxxxx
Sat Jun 29 16:33:23 UTC 2019
Branch: refs/heads/master
Author: Matthew Brush <matt at geany.org>
Committer: GitHub <noreply at github.com>
Date: Sat, 29 Jun 2019 16:33:23 UTC
Commit: aacc9141c05f61ef6663daf7460d080cb100cedc
https://github.com/geany/geany-themes/commit/aacc9141c05f61ef6663daf7460d080cb100cedc
Log Message:
-----------
Change thumbnail size in the index to 128x128 pixels (#32)
Also, since I can't remember where the screenshot-missing.png icon
came from, replace it with the 'image missing' icon from Tango[0]
[0]: https://commons.wikimedia.org/wiki/Tango_icons#/media/File:Image-missing.svg
Modified Paths:
--------------
index/README.md
index/index.json
index/index.json.md5
screenshots/screenshot-missing.png
scripts/mkindex.py
Modified: index/README.md
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -4,7 +4,7 @@ Geany Themes Index File README
The `index.json` file is auto-generated using the `make index` command.
The `index` rule of the Makefile runs the `scripts/mkindex.py` script
which reads the colour schemes' info, generates screenshot and download
-URLs, base64 encoded 64x64 thumbnails and stores it all into a JSON
+URLs, base64 encoded 128x128 thumbnails and stores it all into a JSON
formatted text file.
File Format
@@ -73,12 +73,12 @@ image.
#### thumbnail
-This is a thumbnail image, 64 pixels wide and 64 pixels high, in PNG
+This is a thumbnail image, 128 pixels wide and 128 pixels high, in PNG
format, base64 encoded (for storing in text file). This is a small icon
of the preview screenshot suitable for displaying for example in a GUI
list of schemes. This maybe be an empty string if the colour scheme
doesn't have a screenshot or it maybe be a generic "screenshit missing"
-icon that is 64 pixels wide and tall.
+icon that is 128 pixels wide and tall.
#### version
Modified: index/index.json
72 lines changed, 36 insertions(+), 36 deletions(-)
===================================================================
No diff available, check online
Modified: index/index.json.md5
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1 +1 @@
-f8100bdab45f1627a33bde393dbb63f1 index.json
+861793e9be8d3f9ca27dcda0ce5caa95 index.json
Modified: screenshots/screenshot-missing.png
0 lines changed, 0 insertions(+), 0 deletions(-)
===================================================================
No diff available, check online
Modified: scripts/mkindex.py
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -14,6 +14,7 @@
import StringIO
from PIL import Image, ImageDraw, ImageOps, ImageFilter
+THUMBNAIL_SIZE = (128, 128)
SCREENSHOT_BASE = 'https://raw.github.com/geany/geany-themes/master/screenshots/'
SCHEMES_BASE = 'https://raw.github.com/geany/geany-themes/master/colorschemes/'
@@ -36,7 +37,7 @@ def generate_thumbnail(conf_fn, screenshot_dir='screenshots'):
else:
img = Image.open(png_file)
img = img.crop((2,2,img.size[1]-2,img.size[1]-2))
- img.thumbnail((64,64), Image.ANTIALIAS)
+ img.thumbnail(THUMBNAIL_SIZE, Image.ANTIALIAS)
#-- set to True to save thumbs into screenshots/.thumbs
do_thumbs = False
if do_thumbs:
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list