Subject bounds from alpha pixels
Detection, padding, and 1024×1024 output happen in Canvas; fully opaque images use their complete bounds.
Detect the non-transparent subject, remove empty margins, and export a centered square icon.
Detection, padding, and 1024×1024 output happen in Canvas; fully opaque images use their complete bounds.