-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Center text? #11
Comments
Thank you! Sure thing, I will attempt to make centering better! 👍 |
Hi Lasse, I did some more debugging. And as one friend of mine once said: "The sitation is strange." :D Changing the driver of ImageManager to Imagick in InitialAvatar class ...
... makes text to get then properly aligned in horizontal but the vertical alignment then goes wrong :) Bugger. Maybe there be a bug somewhere in Intervention -> Image lib. |
And I debugged even a bit more using directly ImageMagick. I did this simple command line script:
That one also has some problems to place the text correctly "exactly" aligned. But, IMHO, has better general output on different fonts and sizes. What do you think Lasse? If you feel like this won't fix on UI-avatars, i understand :) In that case, just close this issue. |
Sorry for the crazy slow response, been super busy. Anyway, I think this makes sense 👍 Will try to experiment and compare the two, maybe add an option to use one, but default to the most correct one |
Hi this is a really useful service however this off centre issue is starting to bug me too. Is there any update on fixing this? |
I’m open to suggestions but I can’t think of any solutions sadly 👎🏻
|
Any solution yet ? |
@aliaanis I've been unable to find a solution 👎 I will try @HsRealDev's solution as I think he is definitively onto something (good work, thanks!) |
fwiw: it looks like svg might be rendering correctly and failing during png conversion? png (https://ui-avatars.com/api/?name=B&size=250&format=png) |
Any updates on this @LasseRafn ? 🙏🏼 |
@LasseRafn did the solution you tried lead anywhere? |
Hi,
sorry, my OCD is bugging me again.
Could it be possible to center the text on the image?
Example of an avatar where text is not in aligned to the center:
https://ui-avatars.com/api/?name=II&size=250
ps. Awesome service to help out with project bootstrapping.
The text was updated successfully, but these errors were encountered: