https://avo.cool logo
On thangotube tv I m using avo and I
# general
m
On thangotube.tv I'm using avo and I have dancer avatars which I upload through the avo interface. I would like to "center" or "crop" these images so that way the dancers are centered in their avatar. What is a typical strategy to use here to control this process?
l
hey Justin. can you show some samples? hoit looks now, and what you 'd like to focus on?
m
It's not necessarily only an avo question. I'm taking profile photos from facebook to upload for dancers and it would be awesome to be able to crop it on import. https://cdn.discordapp.com/attachments/1161608539287064606/1161611741004840980/image.png?ex=6538ee3c&is=6526793c&hm=ddb199373077ab94f5fe24cf18df4c2e62f7310fd75185b69badee23ac1147ff&
I would prefer the crop of the first and last. I just attachd the raw photo so it's not centered.
l
I did that using cropper.js. it gives you excatly the parameters you need to push into the
variant
method on an active storage record
m
is this inside of avo or in your application?
l
it's inside an application
custom stimulus controller
m
ahhh. yea I was curious about doing it in avo. Otherwise I have to build this edit page .
l
a resource tool might be the anser
or custom field
m
it would be an awesome feature to enable in avo. I can imagine many people might want to do this
l
yup
PRs are welcomed
if you do it for your app, definitely PR it