ScriptSpot

Forum topic · General Scripting

JPEG interfaces

By Any · 2013-02-02

Description

Good day.

I want to store some my work as JPG files....

---------------------------------------------------------------
outstring="Test.jpg"
render camera:$RenderCamera01 vfb: false outputSize: [400,300] \ outputfile:outstring
--------------------------------------------------------------
How I can adjust "JPEG interfaces" for Test.jpg file?
Where I must pust "JPEG interfaces" for Test.jpg file, before or after "RENDER" command?

Comments (1)

try this

Anubis · 2013-02-03

outstring = "Test.jpg"
JPEG.ijpegio.setQuality 60
newBmp = bitmap 400 300 filename:outstring
save newBmp; close newBmp
render camera:$RenderCamera01 vfb:false \
outputSize:[400,300] outputfile:outstring

But the correct s'd be:

outstring = "Test.jpg"
JPEG.ijpegio.setQuality 60
newBmp = bitmap 400 300 filename:outstring
render camera:$RenderCamera01 vfb:false to:newBmp
save newBmp; close newBmp