Skip to content

Instantly share code, notes, and snippets.

View Wolfenswan's full-sized avatar

Markus Wolfenswan

  • Germany
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="profile.xsd" useForConfiguration="1" base="base" infoUrl="">
<profileName>Genossenschaftsmuseum v 0.2</profileName>
<profileDescription>Profil erstellt am 13. Juli 2022 um 9:11:09</profileDescription>
<locales>
<locale lang="en" country="US">English</locale>
<locale lang="de" country="DE">Deutsch</locale>
<locale lang="en" country="CA" dontUseForCataloguing="1">English (Canadian)</locale>
<locale lang="en" country="AU" dontUseForCataloguing="1">English (Australian)</locale>
<locale lang="de" country="AT" dontUseForCataloguing="1">Deutsch (Österreich)</locale>
@Wolfenswan
Wolfenswan / image_processor.py
Last active April 25, 2019 15:22
Bulk image processor + pdf creator using PIL & Reportlab
"""
Bulk image processor + pdf creator
I had to digitalize, sort and process a large amoung of archival material page by page. Unfortunately all pages only existed as single .jpgs.
I wrote this script to automate the tedious process of renaming + resizing the images, as well as putting them in a single pdf.
It will:
- process all folders in it's current directory
- create a backup of the original images
- rename all images according to the name of the directory containing them
///////// ARMA3 Config CSV EXPORT
///////// Usage: [name,CfgPatches name]
///////// Usage: [name] to export bis stuff
///////// Usage: Paste everything below in the debug console and run it (or exec as script)
///////// ToDo: Filter weapon variants (with sights etc)
private ["_CfgPatches","_configPath","_collectionName","_getClass","_out","_wepsEx","_itemsEx","_magsEx","_backEx","_weapons","_backpacks","_magazines","_glasses","_configName","_picture","_parents","_type","_classname","_mags","_mass","_capacity","_armor","_passthrough","_append","_ammo"];
_CfgPatches = false;
_configPath = "";