Convert txt to png
This project was successfully completed by kerrisg for $300 AUD in 5 days.Get free quotes for a project like this
Project Budget$250 - $750 AUD
Completed In5 days
We are a small, independent photography company specialising in junior team sports photography.
We have developed all our tech systems in-house using a series of shell (bash) scripts. We use Macs (Mavericks), and the bulk of our image processing is done through a loosely coupled collection of modules based on ImageMagick.
One task we complete manually is the conversion of a text file (people's name) into a transparent background png to be overlaid on the rest of the print. We are looking to automate this process. The final product should:
-- receive parameters such as the text file (including tabs), font, colour, minimum/maximum font size (eg 9.0/14pt), box size (based on photo orientation)
-- automatically fit the text to box, aligning tabs (Back Row: etc), auto text size, line breaks (not breaking names) on commas if needed, line spacing (leading)
-- produce a transparent png based on the inputs that displays the txt file contents 'beautifully'
Things that I would build on the script in the future:
-- ability to select an alternative font if the best fit font size is too small (under [url removed, login to view]) - eg Arial to Arial Narrow
-- ability to alter box size based on input logic if the best fit font size was too small - eg make the box a little bigger and the photo a little smaller
What we have tried:
-- LaTeX appears to be an obvious choice. Tab stops were do-able, but the background transparency was problematic. Requires a heavyweight install
-- ImageMagick has a text resize functionality, but can't do tabs. Could still be an option if two text pngs were outputted with the same font size could be combined
-- wkhtmltoimage appears to be the best option, and is lightweight. Can be styled easily with css, but I still can't get it right enough
There is no restriction on how this is done, other than it should be fast and run on the systems specified above.
I have attached some samples of outputs that we do manually.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online