This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This script advances the wallpaper slideshow to the next image. Requires AutoHotkey v2. | |
; Author: Mike "ZiRC" K. (https://github.com/zlrc) | |
; License: CC0 (https://creativecommons.org/publicdomain/zero/1.0/) | |
; | |
; Relevant AutoHotkey Documentation: | |
; - ComObject: https://www.autohotkey.com/docs/v2/lib/ComObject.htm | |
; - ComValue: https://www.autohotkey.com/docs/v2/lib/ComValue.htm | |
; - ComCall: https://www.autohotkey.com/docs/v2/lib/ComCall.htm | |
; - DllCall: https://www.autohotkey.com/docs/v2/lib/DllCall.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Several functions relatting to blurring images on uploaded. | |
* @see https://codeable.io/community/how-to-watermark-wordpress-images-with-imagemagick/ | |
*/ | |
add_image_size( 'background-image-blurred', 1920, 1080, true ); | |
function generate_blurred_image( $meta ) { | |
$time = substr( $meta['file'], 0, 7); // Extract the date in form "2015/04" | |
$upload_dir = wp_upload_dir( $time ); // Get the "proper" upload dir |