Wednesday, 15 July 2015

photoshop - Dectecting and extracting pictures in a 1-layer image -



photoshop - Dectecting and extracting pictures in a 1-layer image -

i have image includes pictures (of different sizes here , there) on solid white background, in 1 layer.

can isolate/extract pictures photoshop ?

thank in advance,

yes , no. working out each of individual images quite hard (and involve slow complex process of scanning each pixel)

but there way around it! without seeing these images like, assume that

the overall image 1 layer. the individual images rectangular the individual images not contain white on border

with can select magic wand in top left, invert selection , cutting images out.

//select top left hand corner magicwand(0,0); // inverse selection activedocument.selection.invert(); //copy image activedocument.selection.cut(); function magicwand(x,y) { var id4109 = charidtotypeid( "setd" ); var desc623 = new actiondescriptor(); var id4110 = charidtotypeid( "null" ); var ref398 = new actionreference(); var id4111 = charidtotypeid( "chnl" ); var id4112 = charidtotypeid( "fsel" ); ref398.putproperty( id4111, id4112 ); desc623.putreference( id4110, ref398 ); var id4113 = charidtotypeid( "t " ); var desc624 = new actiondescriptor(); var id4114 = charidtotypeid( "hrzn" ); var id4115 = charidtotypeid( "#pxl" ); desc624.putunitdouble( id4114, id4115, x ); var id4116 = charidtotypeid( "vrtc" ); var id4117 = charidtotypeid( "#pxl" ); desc624.putunitdouble( id4116, id4117, y ); var id4118 = charidtotypeid( "pnt " ); desc623.putobject( id4113, id4118, desc624 ); var id4119 = charidtotypeid( "tlrn" ); desc623.putinteger( id4119, 0 ); executeaction( id4109, desc623, dialogmodes.no ); }

photoshop photoshop-script photoshop-cs5

No comments:

Post a Comment