This file contains hidden or 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
| declare -a adobeProcessList=('AdobeCRDaemon' 'AdobeIPCBroker' 'com.adobe.acc.installer.v2' 'CCXProcess.app' 'CCLibrary.app' 'Adobe CEF Helper' 'Core Sync' 'Creative Cloud Helper' 'Adobe Desktop Service' 'Creative Cloud'); | |
| for processName in "${adobeProcessList[@]}"; do | |
| pgrep -f "$(echo $processName)" > /dev/null; | |
| if [ $? -ne 0 ]; then | |
| echo "process not running, skipping: ${processName}"; | |
| continue; | |
| fi; |
This file contains hidden or 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
| <?php | |
| // Copy this code into your config.php file | |
| // Replace the default $maxDimension to meet your needs | |
| // Read more about Kirby's Panel hooks at https://getkirby.com/docs/panel/developers/hooks | |
| // Shrink large images on upload | |
| kirby()->hook('panel.file.upload', 'shrinkImage'); | |
| kirby()->hook('panel.file.replace', 'shrinkImage'); | |
| function shrinkImage($file, $maxDimension = 1000) { |