in reply to Image Uploader that Sizes the Photo Like An Avatar

The crop part sounds rather like a JavaScript job ...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: Image Uploader that Sizes the Photo Like An Avatar

Replies are listed 'Best First'.
Re^2: Image Uploader that Sizes the Photo Like An Avatar
by harangzsolt33 (Deacon) on Jul 04, 2022 at 00:42 UTC
    Yes, in fact, this entire task sounds like a JavaScript job. From JavaScript, someone can put a local image from a hard drive to appear on the web page. Then the user can crop it, resize it using JavaScript. See Croppic.js. Then inside a canvas object, the JavaScript can get the new resized image pixel by pixel and convert it into any kind of format and upload it to the other side where your Perl script handles it. The JavaScript side of it is done by the Croppic library, so most of the work is already done for you.