Skip to content
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

Text not centered #1

Closed
chrise86 opened this issue Nov 20, 2015 · 5 comments
Closed

Text not centered #1

chrise86 opened this issue Nov 20, 2015 · 5 comments

Comments

@chrise86
Copy link

The initials are appearing off center - closer to the top:

avatar

Any ideas? Not adjusting any options other than background colour.

dragonfly (1.0.10)
rails (4.2.4)

@bjedrocha
Copy link
Owner

I haven't noticed this. Can you try using a different font using the font option? The library defaults to 'Arial Regular`.

E.g.

Dragonfly.app.generate(:initial_avatar, "Oliver Murphy", {background_color: 'b71c1c', font: 'Georgia'})

@bradpurchase
Copy link

Definitely seeing the text displaying not quite vertically centered here as well with default settings - example: https://www.dropbox.com/s/oyqijpmr26pr3c7/avatar.png?dl=0

@bjedrocha
Copy link
Owner

@bradpurchase can you tell me which version of ImageMagick is installed on your system?

convert -version

I was able to reproduce this morning while running version 6.9.4-3. I've updated my version to 6.9.5-4 and the text is once again centered. Thanks.

bjedrocha added a commit that referenced this issue Aug 8, 2016
Changes centering strategy to use IM’s extent. Possible fix for #1.
@bjedrocha
Copy link
Owner

I pushed a new version of the gem that addresses the above issue. Please update the reference in your Gemfile.

Thanks for bringing this to my attention. Cheers.

@bradpurchase
Copy link

Awesome, thanks @bjedrocha! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants