HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
MIT License
236 stars 91 forks source link

BUG. Doesn't keep ratio when image is rectangle. #73

Open kamilwasyl opened 5 years ago

kamilwasyl commented 5 years ago

I want it to squeeze to be square.

image

both are set like this :

<ngx-avatar src="{{company.logoLink}}" name="{{company.name}}" initialsSize="3" size="40" [round]="true">

kamilwasyl commented 4 years ago

? Any thoughts ? Still a bug

marcoacevey commented 4 years ago

Having the same issue on ionic.

odahcam commented 4 years ago

Hey, I think it's not a bug, but just a not implemented feature.

marcoacevey commented 4 years ago

Dealing with the same problem :| Can't find any workarround.

marcoacevey commented 4 years ago

Hey, I think it's not a bug, but just a not implemented feature.

CSS may be?

marcoacevey commented 4 years ago

In my case, on an Android device, It gets width is nota right, on ionic 4.

Em qua, 13 de nov de 2019 17:32, Luiz Machado notifications@github.com escreveu:

Hey, I think it's not a bug, but just a not implemented feature.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HaithemMosbahi/ngx-avatar/issues/73?email_source=notifications&email_token=ABUVGTNZBQW6UGFXFB66U6DQTRP4XA5CNFSM4IH5JNE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED7RR6Q#issuecomment-553588986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUVGTJ672GJVLE66W4ZJ3TQTRP4XANCNFSM4IH5JNEQ .

odahcam commented 4 years ago

You can always use ::ng-deep and customize the styling. That would certainty help you.

kamilwasyl commented 4 years ago

@odahcam any examples?

michelebombardi commented 4 years ago

Same problem here.

jonetapian commented 3 years ago

no solution yet ? having the same problem here