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.
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
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
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
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.
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