Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transform an image into different aspect ratios
#8
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.
Reply


Messages In This Thread
RE: Transform an image into different aspect ratios - by Ofnuts - 02-05-2024, 11:26 PM

Forum Jump: