gadenbuie/garrickadenbuie-com

[Post] Make the image an actual circle

gadenbuie opened this issue · 0 comments

Ah I should have made that a little clearer in the post. The presentation of the image as a circle is done with CSS in the post.

In this case, since they're profile pictures, I wouldn't actually want to apply the circle to the image itself; instead I'd leave that to whatever service is using the profile image. For example, in most places Twitter uses a circular profile image but sometimes it uses a square. Some social sites might use larger or smaller circles or apply their own cropping logic, etc.

To modify the image directly to achieve the circle border, this StackOverflow post seems to be a good place to start. I haven't tried it but I think you would use image_draw() to draw a circle and then use image_composite() to overlay the circle on the image. Hope that helps!

Originally posted by @gadenbuie in #121 (reply in thread)