This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
It's my first participation on Faker so excuse me in advance if I did some mistake.
I added a new formatter that creates images directly from PHP using the GD methods (usually by default on most setup).
I felt it could be a good addition as the image formatter currently uses the great LoremPixel, but has a drawback that it is quite slow on generating multiples pictures and need an internet connection.
This formatter doesn't require network and is way much faster, but... not as pretty indeed.
I added it on the Image Provider as it seemed obvious to me.
It takes about the same arguments as the image formatter (dir, width, height...) and I added possibility to add a text and change colors.
For the text I included the open source font Roboto (https://www.google.com/fonts/specimen/Roboto under Apache licence), I hope it's ok for you but I can understand it could be the main problem of my new feature.
I hope you'll like it and I'm ready to make any good changes suggested.
Best regards.