My goal for the following file is to, when exported as an embedded widget, be interactive as such that when the user clicks on the “Click to load image” they will be able to load images from either their own computer or using an online link.
My goal beyond this would be to add some basic scalability to the images so they can make them fit the dimensions of the placeholder I put there aesthetically.
Awesome! Thank you! Is there anyway to add some custom scalability to the placed image, like all the social networks do in customizing user avatars/profile icons/pictures?
Also, how might one use the drag and drop interface instead (with optional upload button)… in place of exactly where the image will be uploaded, so that once the image is uploaded, it disappears/is rather replaced?
Using your FileReader example… would there be just slight changes needed in the “preview.style.background…” section in order to implement the resize/scale/crop feature?