Online DXF Preview Image Maker
-
- 4 Star Member
- Posts: 860
- Joined: Fri Dec 03, 2010 7:57 pm
- Location: SE TX
Online DXF Preview Image Maker
Look what I've been working on.
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
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
- jmsrbrt
- 3 Star Member
- Posts: 382
- Joined: Mon Dec 08, 2008 5:24 pm
- Location: San Marcos, TX
- Contact:
Re: Online DXF Preview Image Maker
Unbelievable. You ARE talented.
Torchmate 2 with ATHC & Water table
Corel 12, Turbo Cad
TD Cutmaster 51
San Marcos, Texas
Corel 12, Turbo Cad
TD Cutmaster 51
San Marcos, Texas
-
- 4 Star Member
- Posts: 1455
- Joined: Wed Feb 04, 2009 5:35 pm
Re: Online DXF Preview Image Maker
Great work Gary, that's going to be a real handy addition.
Murray
Murray
-
- 3 Star Member
- Posts: 484
- Joined: Sun Mar 27, 2011 10:13 pm
Re: Online DXF Preview Image Maker
Nice Gary.
Jim
Jim
-
- 4 Star Member
- Posts: 860
- Joined: Fri Dec 03, 2010 7:57 pm
- Location: SE TX
Re: Online DXF Preview Image Maker
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)
(foreground color only works on closed polylines)
-
- 4 Star Member
- Posts: 860
- Joined: Fri Dec 03, 2010 7:57 pm
- Location: SE TX
Re: Online DXF Preview Image Maker
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...
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...
-
- 4 Star Member
- Posts: 860
- Joined: Fri Dec 03, 2010 7:57 pm
- Location: SE TX
- 4R8
- 2.5 Star Member
- Posts: 159
- Joined: Fri Jul 08, 2011 6:50 pm
Re: Online DXF Preview Image Maker
That's amazing, better add it to my favourites bar!
- 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
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.
-
- 4 Star Member
- Posts: 860
- Joined: Fri Dec 03, 2010 7:57 pm
- Location: SE TX
Re: Online DXF Preview Image Maker
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...
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...
- 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
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.