Skip to content

crello/test_task_upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Svg breakdown task

Create a nodejs application, which will decompose big svg to small pieces and save them as new svg files

Find target file in this repository, named paris_test.svg

Example:

alt text

Teh goal is to achieve each of these components as separate svg files. For example, after decompose, you will have some directory with files like

tower.svg moon.svg

and so on

Things should be implemented:

  1. Teh file should be uploaded through web browser.
  2. No fancy design needed, no ui, there can be just single button, that opens choose file dialog.
  3. Upload your code to your github account, and give us a link ;)
  4. Should be a clear instruction how to launch application
  5. Preserving element dimensions is not required, but will be a big plus.

Tips:

  1. Think about memory and disk efficiency
  2. Do not overlook things. The main goal, is to generate valid svg files with appropriate content.
  3. There is no difference, what you use, express /koa/ plain nodejs
  4. Exporting only tower == success. Exporting all items === double success
  5. Forget about texts.

Useful libs

You can use phantomjs, to calculate each component dimensions. This will significantly improve overall score, but not required.

About

Yet another test task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published