02-05-2024, 11:26 PM
drw = final_layer isn't necessary you can use final_layer directly in the file_jpeg_save call.
But for me the non-elegant things are the hardcoded output path (that requires admin privs if I am not mistaken...) and all the hard-coded sizes and offsets that will make you suffer if you want to do more than one aspect ratio.
But for me the non-elegant things are the hardcoded output path (that requires admin privs if I am not mistaken...) and all the hard-coded sizes and offsets that will make you suffer if you want to do more than one aspect ratio.