LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell Scripting (https://www.linuxquestions.org/questions/linux-newbie-8/shell-scripting-4175622473/)

shivam singh 01-26-2018 01:18 PM

Shell Scripting
 
A shell script which takes an image as input and converts that into a vector of the same size.

keefaz 01-26-2018 01:21 PM

You're looking for a rasterizer of some sort, see for example
http://potrace.sourceforge.net/samples.html

shivam singh 01-26-2018 01:26 PM

Quote:

Originally Posted by keefaz (Post 5811803)
You're looking for a rasterizer of some sort, see for example
http://potrace.sourceforge.net/samples.html


I need code for reference

teckk 01-26-2018 02:12 PM

Imagemagick will do that I think if this is what you want
Code:

convert file.jpg file.svg
Code:

convert  -list delegate | grep -i svg
https://www.vectorizer.io/
http://potrace.sourceforge.net/
https://inkscape.org/en/

Quote:

I need code for reference
Then write some.

shivam singh 01-27-2018 02:44 AM

Quote:

Originally Posted by teckk (Post 5811829)
Imagemagick will do that I think if this is what you want
Code:

convert file.jpg file.svg
Code:

convert  -list delegate | grep -i svg
https://www.vectorizer.io/
http://potrace.sourceforge.net/
https://inkscape.org/en/


Then write some.

I am using convert file.jpg file.svg
but getting invalid parameter error

ondoho 01-27-2018 04:23 AM

Quote:

Originally Posted by shivam singh (Post 5812076)
I am using convert file.jpg file.svg
but getting invalid parameter error

https://www.imagemagick.org/discourse-server/search.php
https://imagemagick.org/script/command-line-options.php

TB0ne 01-27-2018 08:56 AM

Quote:

Originally Posted by shivam singh (Post 5812076)
I am using convert file.jpg file.svg but getting invalid parameter error

So read the man page or the documentation. And you ALSO need to read the "Question Guidelines" and "How to ask a smart question" links in my posting signature, along with the LQ Rules.

We WILL NOT write your scripts or do your homework for you. YOU, personally, are expected to do some research on your own, and show your own efforts, before posting. You now have four threads open with nothing but a homework question, and no efforts shown.

John VV 01-28-2018 05:06 PM

the imagemagick convert will NOT make a svg
it will put a svg wrapper around a jpg but it will NOT be a vector image

have a look at using "Trace Bitmap"


All times are GMT -5. The time now is 04:03 PM.