discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Export image to file?

S
Scalpel78
Tue, Dec 30, 2014 10:30 AM

Hi, I'm trying to export an image from OpenSCAD to file.

Using the commandline options I've executed this:

"%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg --imgsize=256,256
--preview ballbearing.scad

The only thing that happens is that OpenSCAD displays the usage text. No
information about what is missing, or what it doesn't understand.

What am I doing wrong?

--
View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, I'm trying to export an image from OpenSCAD to file. Using the commandline options I've executed this: "%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg --imgsize=256,256 --preview ballbearing.scad The only thing that happens is that OpenSCAD displays the usage text. No information about what is missing, or what it doesn't understand. What am I doing wrong? -- View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MH
Miro Hrončok
Tue, Dec 30, 2014 12:14 PM

I guess you have to use filename with .png extension. That way
OpenSCAD recognizes you want an image (it does not AFAIK support JPEG
images)
Miro Hrončok

Telefon: +420777974800

2014-12-30 11:30 GMT+01:00 Scalpel78 frode@lillerud.no:

Hi, I'm trying to export an image from OpenSCAD to file.

Using the commandline options I've executed this:

"%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg --imgsize=256,256
--preview ballbearing.scad

The only thing that happens is that OpenSCAD displays the usage text. No
information about what is missing, or what it doesn't understand.

What am I doing wrong?

--
View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I guess you have to use filename with .png extension. That way OpenSCAD recognizes you want an image (it does not AFAIK support JPEG images) Miro Hrončok Telefon: +420777974800 2014-12-30 11:30 GMT+01:00 Scalpel78 <frode@lillerud.no>: > Hi, I'm trying to export an image from OpenSCAD to file. > > Using the commandline options I've executed this: > > "%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg --imgsize=256,256 > --preview ballbearing.scad > > The only thing that happens is that OpenSCAD displays the usage text. No > information about what is missing, or what it doesn't understand. > > What am I doing wrong? > > > > -- > View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
J
jon
Tue, Dec 30, 2014 12:59 PM

If OpenSCAD does not support JPG, does it emit an error message somewhere?

On 12/30/2014 7:14 AM, Miro Hrončok wrote:

I guess you have to use filename with .png extension. That way
OpenSCAD recognizes you want an image (it does not AFAIK support JPEG
images)
Miro Hrončok

Telefon: +420777974800

2014-12-30 11:30 GMT+01:00 Scalpel78 frode@lillerud.no:

Hi, I'm trying to export an image from OpenSCAD to file.

Using the commandline options I've executed this:

"%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg --imgsize=256,256
--preview ballbearing.scad

The only thing that happens is that OpenSCAD displays the usage text. No
information about what is missing, or what it doesn't understand.

What am I doing wrong?

--
View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5577 / Virus Database: 4257/8837 - Release Date: 12/30/14

If OpenSCAD does not support JPG, does it emit an error message somewhere? On 12/30/2014 7:14 AM, Miro Hrončok wrote: > I guess you have to use filename with .png extension. That way > OpenSCAD recognizes you want an image (it does not AFAIK support JPEG > images) > Miro Hrončok > > Telefon: +420777974800 > > > 2014-12-30 11:30 GMT+01:00 Scalpel78 <frode@lillerud.no>: >> Hi, I'm trying to export an image from OpenSCAD to file. >> >> Using the commandline options I've executed this: >> >> "%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg --imgsize=256,256 >> --preview ballbearing.scad >> >> The only thing that happens is that OpenSCAD displays the usage text. No >> information about what is missing, or what it doesn't understand. >> >> What am I doing wrong? >> >> >> >> -- >> View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806.html >> Sent from the OpenSCAD mailing list archive at Nabble.com. >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.5577 / Virus Database: 4257/8837 - Release Date: 12/30/14
MH
Miro Hrončok
Tue, Dec 30, 2014 1:20 PM

Don't know, this was just a wild guess.
Miro Hrončok

Telefon: +420777974800

2014-12-30 13:59 GMT+01:00 jon jon@jonbondy.com:

If OpenSCAD does not support JPG, does it emit an error message somewhere?

On 12/30/2014 7:14 AM, Miro Hrončok wrote:

I guess you have to use filename with .png extension. That way
OpenSCAD recognizes you want an image (it does not AFAIK support JPEG
images)
Miro Hrončok

Telefon: +420777974800

2014-12-30 11:30 GMT+01:00 Scalpel78 frode@lillerud.no:

Hi, I'm trying to export an image from OpenSCAD to file.

Using the commandline options I've executed this:

"%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg
--imgsize=256,256
--preview ballbearing.scad

The only thing that happens is that OpenSCAD displays the usage text. No
information about what is missing, or what it doesn't understand.

What am I doing wrong?

--
View this message in context:
http://forum.openscad.org/Export-image-to-file-tp10806.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5577 / Virus Database: 4257/8837 - Release Date: 12/30/14

Don't know, this was just a wild guess. Miro Hrončok Telefon: +420777974800 2014-12-30 13:59 GMT+01:00 jon <jon@jonbondy.com>: > If OpenSCAD does not support JPG, does it emit an error message somewhere? > > > On 12/30/2014 7:14 AM, Miro Hrončok wrote: >> >> I guess you have to use filename with .png extension. That way >> OpenSCAD recognizes you want an image (it does not AFAIK support JPEG >> images) >> Miro Hrončok >> >> Telefon: +420777974800 >> >> >> 2014-12-30 11:30 GMT+01:00 Scalpel78 <frode@lillerud.no>: >>> >>> Hi, I'm trying to export an image from OpenSCAD to file. >>> >>> Using the commandline options I've executed this: >>> >>> "%PROGRAMFILES%\OpenSCAD\Openscad.com" -o ballbearing.jpg >>> --imgsize=256,256 >>> --preview ballbearing.scad >>> >>> The only thing that happens is that OpenSCAD displays the usage text. No >>> information about what is missing, or what it doesn't understand. >>> >>> What am I doing wrong? >>> >>> >>> >>> -- >>> View this message in context: >>> http://forum.openscad.org/Export-image-to-file-tp10806.html >>> Sent from the OpenSCAD mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> ----- >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2015.0.5577 / Virus Database: 4257/8837 - Release Date: 12/30/14 > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
TP
Torsten Paul
Tue, Dec 30, 2014 2:23 PM

On 12/30/2014 01:59 PM, jon wrote:

If OpenSCAD does not support JPG, does it emit an error message somewhere?

$ ./openscad -o /tmp/qqq.jpg csg.scad
Unknown suffix for output file /tmp/qqq.jpg

On 12/30/2014 01:59 PM, jon wrote: > If OpenSCAD does not support JPG, does it emit an error message somewhere? > $ ./openscad -o /tmp/qqq.jpg csg.scad Unknown suffix for output file /tmp/qqq.jpg
S
Scalpel78
Tue, Dec 30, 2014 4:37 PM

The problem seems to be the --preview argument. It expects either
--preview=false or --preview=true. When just calling --preview it fails
without a useful error message.

--
View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806p10811.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

The problem seems to be the --preview argument. It expects either --preview=false or --preview=true. When just calling --preview it fails without a useful error message. -- View this message in context: http://forum.openscad.org/Export-image-to-file-tp10806p10811.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Tue, Dec 30, 2014 10:50 PM

On Dec 30, 2014, at 11:37 AM, Scalpel78 frode@lillerud.no wrote:

The problem seems to be the --preview argument.

Yes, the problem is that the preview parameter takes an optional parameter, i.e. --preview or —preview=throwntogether.
Since we don’t actually have a way determining the absence of a parameter unless the —preview options comes last, this may fail.

Workaround: Always pass the preview option after the main .scad file on the cmd-line.

Not sure how easy it would be to fix this.

-Marius

On Dec 30, 2014, at 11:37 AM, Scalpel78 <frode@lillerud.no> wrote: > The problem seems to be the --preview argument. Yes, the problem is that the preview parameter takes an optional parameter, i.e. --preview or —preview=throwntogether. Since we don’t actually have a way determining the absence of a parameter unless the —preview options comes last, this may fail. Workaround: Always pass the preview option _after_ the main .scad file on the cmd-line. Not sure how easy it would be to fix this. -Marius