discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Command Line PNG

JB
Jordan Brown
Tue, Jul 11, 2023 10:12 PM

On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote:

I am generating PNG images from Windows 11 command line and the images
are coming out pretty grainy.  Just wondering what I am doing wrong,
here are the parameters I am using.

openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom
--camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024

That command works OK for me for a couple of simple models.

Can you give an example of an image that you're not satisfied with, and
maybe the model it came from?

Generally if you're making a PNG I wouldn't expect you to use --render,
because that loses any color that you've specified in the model.

On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote: > I am generating PNG images from Windows 11 command line and the images > are coming out pretty grainy.  Just wondering what I am doing wrong, > here are the parameters I am using. > > openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom > --camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024 > That command works OK for me for a couple of simple models. Can you give an example of an image that you're not satisfied with, and maybe the model it came from? Generally if you're making a PNG I wouldn't expect you to use --render, because that loses any color that you've specified in the model.
NH
nop head
Tue, Jul 11, 2023 10:44 PM

I export with --imgsize=4096,4096 and then trim and resize it with Image
magick to get an antialiased image.

On Tue, 11 Jul 2023 at 23:13, Jordan Brown openscad@jordan.maileater.net
wrote:

On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote:

I am generating PNG images from Windows 11 command line and the images are
coming out pretty grainy.  Just wondering what I am doing wrong, here are
the parameters I am using.

openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom
--camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024

That command works OK for me for a couple of simple models.

Can you give an example of an image that you're not satisfied with, and
maybe the model it came from?

Generally if you're making a PNG I wouldn't expect you to use --render,
because that loses any color that you've specified in the model.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I export with --imgsize=4096,4096 and then trim and resize it with Image magick to get an antialiased image. On Tue, 11 Jul 2023 at 23:13, Jordan Brown <openscad@jordan.maileater.net> wrote: > On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote: > > I am generating PNG images from Windows 11 command line and the images are > coming out pretty grainy. Just wondering what I am doing wrong, here are > the parameters I am using. > > openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom > --camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024 > > > That command works OK for me for a couple of simple models. > > Can you give an example of an image that you're not satisfied with, and > maybe the model it came from? > > Generally if you're making a PNG I wouldn't expect you to use --render, > because that loses any color that you've specified in the model. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
RD
Revar Desmera
Tue, Jul 11, 2023 10:58 PM

I also generate double sized images and then scale them down for antialiasing. I use the Python package openscad_runner to automate this when generating documentation from openscad_docsgen.

-Revar

On Jul 11, 2023, at 3:46 PM, nop head <nop.head@gmail.com> wrote:

I export with --imgsize=4096,4096 and then trim and resize it with Image magick to get an antialiased image.

On Tue, 11 Jul 2023 at 23:13, Jordan Brown <openscad@jordan.maileater.net> wrote:

On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote:

I am generating PNG images from Windows 11 command line and the images are coming out pretty grainy. Just wondering what I am doing wrong, here are the parameters I am using.

openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom --camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024

That command works OK for me for a couple of simple models.

Can you give an example of an image that you're not satisfied with, and maybe the model it came from?

Generally if you're making a PNG I wouldn't expect you to use --render, because that loses any color that you've specified in the model.

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

TO
Trevor Orr
Tue, Jul 11, 2023 11:01 PM

Thanks, I will try it without the --render and also double my output size.
On Tuesday, July 11, 2023 at 03:59:30 PM PDT, Revar Desmera revarbat@gmail.com wrote:

I also generate double sized images and then scale them down for antialiasing. I use the Python package openscad_runner to automate this when generating documentation from openscad_docsgen. 
-Revar

On Jul 11, 2023, at 3:46 PM, nop head nop.head@gmail.com wrote:

I export with --imgsize=4096,4096 and then trim and resize it with Image magick to get an antialiased image. 
On Tue, 11 Jul 2023 at 23:13, Jordan Brown openscad@jordan.maileater.net wrote:

On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote:

I am generating PNG images from Windows 11 command line and the images are coming out pretty grainy.  Just wondering what I am doing wrong, here are the parameters I am using.
openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom --camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024

That command works OK for me for a couple of simple models.

Can you give an example of an image that you're not satisfied with, and maybe the model it came from?

Generally if you're making a PNG I wouldn't expect you to use --render, because that loses any color that you've specified in the model.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks, I will try it without the --render and also double my output size. On Tuesday, July 11, 2023 at 03:59:30 PM PDT, Revar Desmera <revarbat@gmail.com> wrote: I also generate double sized images and then scale them down for antialiasing. I use the Python package openscad_runner to automate this when generating documentation from openscad_docsgen.  -Revar On Jul 11, 2023, at 3:46 PM, nop head <nop.head@gmail.com> wrote: I export with --imgsize=4096,4096 and then trim and resize it with Image magick to get an antialiased image.  On Tue, 11 Jul 2023 at 23:13, Jordan Brown <openscad@jordan.maileater.net> wrote: On 7/11/2023 10:07 AM, Trevor Orr via Discuss wrote: I am generating PNG images from Windows 11 command line and the images are coming out pretty grainy.  Just wondering what I am doing wrong, here are the parameters I am using. openscad.com -o image_1.png ../file.scad --render --colorscheme=Custom --camera=22,-8,-14,53,0,28,750 --imgsize=1024,1024 That command works OK for me for a couple of simple models. Can you give an example of an image that you're not satisfied with, and maybe the model it came from? Generally if you're making a PNG I wouldn't expect you to use --render, because that loses any color that you've specified in the model. _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org