Skip to content

auto-crop digits or numbers from one image to individual png files?

Not downloaded yet

hi i'm currently working on some designs for an amoled display screen of a certain device, anyways , i kinda make my prototype design then i have to start making letters & numbers to add them separately as png files letter for coding, it is so painful to to creat new files number by number, and letter by letter for each design, is there any way to :

1- make them all in one image, and i just change the font and dimension once to change them all

2- auto-crop them one by one to png files

that's an example of my working folder if you didn't understand

https://i.imgur.com/WRReivi.png

any ideas on how to achieve this, or at least make it little easier? thank you

update: solution by u/babysuporte Export Assets in Illustrator CC

​

Edited 6 Apr 2020. We only hold this version.

2 points10 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Image
ID
fvr0np

Author

5
posts
13
comments
3
media
View profile

10 comments

In Illustrator you can convert whatever font to vector and use the export tool to export each object. You can also name them and add multiple exporting sizes.

1 points

I'm not too sure I understood. Do you have to create the text by hand or just test different fonts?
In either case if you have Photoshop you can use pen tool to draw the letters and numbers and then the slice tool to separate each letter and number then export for web as separate png files. I think gimp has a similar feature if you don't have access to photoshop.

1 points

Hi . Thanks for the reply. The text is normal fonts, I have to do this step everytime I change the design to match it with it . After choosing font and dimensions I need to make each letter A-Z and each number 0-9 with that specific font type and size in separate PNG files . It's really hard to make them one by one , that's the issue :/ Can the slice tool in ps do the job?

1 points

Yeah slices will work or you could type each letter on a separate layer and export each layer. The second option might be easier if you haven't worked with slices previously.

Actually I have a PSD file you can download that has every letter on a separate layer. Feel Free to download the PSD and just export layers to file each time you change the font or dimensions.

Alphabet.PSD

Edit: Added the link to the PSD file.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.