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

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO