How to change the resolution of the image?
how change resolution of image , how set "pixel/inch" in document size. how enable check box of "scale styles", "constrain proportion" , "resample image" via scripting. kindly advise me.
thanks
resizeimage not let set 'scale styles'. if want scale styles need use scriptlistner.
here examples "constrain proportion" , "resample image".
activedocument.resizeimage( undefined,undefined,300,resamplemethod.none);// change dpi without resample activedocument.resizeimage( new unitvalue(2,'in'),undefined,72,resamplemethod.bicubicsharper);// change width - defaults constrain proportion activedocument.resizeimage( new unitvalue(5,'in'),new unitvalue(5,'in'),300,resamplemethod.bicubicsharper);// change both w , h - may or may not matain proportions
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment