Online DXF Preview Image Maker

General software related questions should be posted here.
Post Reply
SignTorch Vector Art
4 Star Member
4 Star Member
Posts: 860
Joined: Fri Dec 03, 2010 7:57 pm
Location: SE TX

Online DXF Preview Image Maker

Post by SignTorch Vector Art »

Look what I've been working on. :geek:
dxf preview image maker

Upload a DXF file and it draws a preview. Currently it just displays a javascript image. To save that you'd have to take a screenshot. It will soon save PNG files to. This is just a test preview of a developing project, no need to send error reports or anything, some dxf files just don't work, and many dxf features have yet to be incorporated. I appears to support 'most' dxf files. The javascript is unthrottled, uploading 2 or 3 megabyte dxf files can easily totally overload your browser (or whole system). Currently it recognizes dxf with circles, lines, arcs, polylines, lwpolylines, fitted polylines, and splines (partly). Nice closed polylines get filled with grey as shown below. Now it just needs zoom and pan controls.

screenshot
Image
User avatar
jmsrbrt
3 Star Member
3 Star Member
Posts: 382
Joined: Mon Dec 08, 2008 5:24 pm
Location: San Marcos, TX
Contact:

Re: Online DXF Preview Image Maker

Post by jmsrbrt »

Unbelievable. You ARE talented.
Torchmate 2 with ATHC & Water table
Corel 12, Turbo Cad
TD Cutmaster 51
San Marcos, Texas
muzza
4 Star Member
4 Star Member
Posts: 1455
Joined: Wed Feb 04, 2009 5:35 pm

Re: Online DXF Preview Image Maker

Post by muzza »

Great work Gary, that's going to be a real handy addition.
Murray
Dawgonhawg
3 Star Member
3 Star Member
Posts: 484
Joined: Sun Mar 27, 2011 10:13 pm

Re: Online DXF Preview Image Maker

Post by Dawgonhawg »

Nice Gary.

Jim
SignTorch Vector Art
4 Star Member
4 Star Member
Posts: 860
Joined: Fri Dec 03, 2010 7:57 pm
Location: SE TX

Re: Online DXF Preview Image Maker

Post by SignTorch Vector Art »

now it has colors and zoom and pan, now just need to make it save a png file
(foreground color only works on closed polylines)
dxf-viewer.jpg
dxf-viewer.jpg (21.94 KiB) Viewed 2513 times
dxf-viewer.jpg
dxf-viewer.jpg (21.94 KiB) Viewed 2513 times
SignTorch Vector Art
4 Star Member
4 Star Member
Posts: 860
Joined: Fri Dec 03, 2010 7:57 pm
Location: SE TX

Re: Online DXF Preview Image Maker

Post by SignTorch Vector Art »

ok, now it makes a png file and has adjustable size

fixed several issues with displaying all the different uploaded dxf file types

still missing ellipses, and full spline support (and blocks), will work on that....

and I moved it to ezdxf.com...

I think it might have potential to be useful...
SignTorch Vector Art
4 Star Member
4 Star Member
Posts: 860
Joined: Fri Dec 03, 2010 7:57 pm
Location: SE TX

Re: Online DXF Preview Image Maker

Post by SignTorch Vector Art »

Update: now it does splines. (That was hard to figure out....)
+ fixed some minor issues, like allowing spaces in the filename
it made this image from a corel dxf version 2008 (with splines)
Image
User avatar
4R8
2.5 Star Member
2.5 Star Member
Posts: 159
Joined: Fri Jul 08, 2011 6:50 pm

Re: Online DXF Preview Image Maker

Post by 4R8 »

That's amazing, better add it to my favourites bar!
User avatar
admin
Site Admin
Posts: 363
Joined: Thu Jul 03, 2008 5:12 pm
Location: Out In The Shop
Contact:

Re: Online DXF Preview Image Maker

Post by admin »

That is very impressive Gary. Will you be adding the ability to save the generated image? This would be a very useful tool for members who are currently unable to easilly generate thier own sample image when sharing a dxf file in the dxf file sharing forum.
:D
SignTorch Vector Art
4 Star Member
4 Star Member
Posts: 860
Joined: Fri Dec 03, 2010 7:57 pm
Location: SE TX

Re: Online DXF Preview Image Maker

Post by SignTorch Vector Art »

yes, the top image is a svg/xml vector thingy for zooming and panning, it's not a standard image so it can't be saved (except by screen capture)

the bottom image is a normal PNG image that you can click or right click on, to save it, and use it like a normal image

sometimes it takes a while to finish making the PNG, it can be slow to display the PNG image at the bottom of the page

it makes PNG images because they can have RGB color (like jpeg) and transparency (like gif), otherwise PNG works just like a JPG or GIF image

it still needs work to recognize ellipses and blocks, have better color/gradient picker, adjustable dimensions, and it still flips out on some files, so still working on it....

then, I hope to make it connect adjacent segments (like corel join curves tool), downconvert splines (to arcs ?), sort cuts and set cut direction, and things like that...
User avatar
admin
Site Admin
Posts: 363
Joined: Thu Jul 03, 2008 5:12 pm
Location: Out In The Shop
Contact:

Re: Online DXF Preview Image Maker

Post by admin »

Ah, I see. If I was a little more patient I may have seen the png image appear below. Looks great Gary, I can appreciate what it would take to create something like that.
Post Reply

Return to “General Discussion”