%PDF- %PDF-
Direktori : /lib/calibre/odf/ |
Current File : //lib/calibre/odf/thumbnail.py |
#!/usr/bin/env python3 # This contains a 128x128 px thumbnail in PNG format # Taken from https://cgit.freedesktop.org/libreoffice/core/tree/sysui/desktop/icons/hicolor/128x128/apps/main.png # License: GPL-3 import base64 iconstr = b""" iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAA3NCSVQICAjb4U/gAAAACXBIWXMA AA3XAAAN1wFCKJt4AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAspQTFRF AAAAgICAZmZmVVVVgICAampqgICAYmJidnZ2aGhoa2treHh4ZGRkcHBwdnZ2ampqcXFxb29vc3Nz cXFxcHBwbm5uUlJSY2Njbm5ubW1tbGxsampqbW1tbGxsa2trfn5+aGhoampqaWlpfX19d3d3d3d3 ZGRkb29vYmJiVFRUZGRkZ2dnbm5uZmZmVFRUYmJiZGRkc3NzfX19c3NzfX19dXV1ZGRkampqdHR0 dXV1aWlpa2trbGxsbW1tb29vcHBwcXFxcnJydHR0ZWVlZmZmaGhoaGhofn5+d3d3Y2Njc3Nzbm5u cHBwZ2dnaGhoU1NTZGRkU1NTYmJifn5+d3d3bm5ub29vcXFxcnJyc3Nzd3d3eHh4eXl5enp6e3t7 fHx8fX19fn5+Y2NjaGhofn5+c3NzU1NTcnJyc3Nzfn5+U1NTYmJiZGRkaGhob29vcXFxcnJybm5u b29vbGxsbW1tbm5uc3Nzampqa2trbGxsdnZ2ZGRkaWlpaGhoaWlpZGRkZWVlZmZmZ2dnaGhoaWlp ampqa2trbGxsbW1tbm5ub29vcHBwcXFxcnJyc3NzdHR0dXV1dnZ2d3d3eHh4eXl5enp6e3t7fHx8 fX19fn5+U1NTVFRUVVVVVlZWV1dXWFhYWVlZWlpaW1tbXFxcXV1dXl5eX19fYGBgYWFhYmJiY2Nj ZGRkZWVlZmZmZ2dnaGhoaWlpampqa2trbGxsbW1tbm5ub29vcHBw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ZDQZWdxSjZW UnLjko1lIrCOKLnkGFuysQfJpGRDQUTMko2dpMS0ZGM5OUaWbJJKjg1KNnaIMC3ZkJeMzEs21pZI 5QEJcc0CH5TSZWdSAJ/96wq6H9jGaPO3R1IAo3Q9RwkoSwG8AdTT64YittdSAEVLL6r5iV9JCqB8 9Dg1/e525oN8FrzYm21ctJGEBL49KQ6VKvpn/wE4qQRdyiC8rQAAAABJRU5ErkJggg== """ def thumbnail(): icon = base64.decodestring(iconstr) return icon if __name__ == "__main__": icon = thumbnail() f = open("thumbnail.png","wb") f.write(icon) f.close()