> On Wed, 13 May 2009, Stefan Kilp [sk-software] wrote: > > > hi list, > > > > i want to apply the crop function to a list of pictures with different > > sizes. > > > > i used the scale filter before and the use was pretty simple: > > > > - define filter > > - apply to all images > > - fine :-) > > > > when using the crop filter the size of the image gets important, > > because the crop position has to be defined depending on the image > > size. it makes no sense to crop part of an image at fixed position > > e.g: offset 10,10, with width/height 50,50. > > > > so the common way : define filter, apply to all images doesn't work. > > > > is there a kind of callback i can use to define the crop parameter > > before appling to all pictures or do i have to re-define the filter > > for every picture? > > Hmm, could you describe what you are trying to achieve here?
i try to crop a square from the middle of a picture (mostly it is the important part). the square is needed for a thumb list. example ( a 80x80 square form the middle of an image) image 200x200 -> crop 60,60 80x80 image 300x1000 -> crop 110, 460 dim 80x80 image 100 x 20 -> crop 10,0 80x20 the problem is that the parameter for the filter has to be defined before the image is processed. so right now i have to get the image size, define a filter, get next image, get imagesize, define filter, and so on. thats why i was asking for a kind of callback function for the filter so i can define crop dynamicly Best regards, Stefan Kilp > > regards, > -- > Derick Rethans > eZ components Product Manager > eZ systems | http://ez.no > -- Stefan Kilp SK-Software, Entwicklung & Beratung email: k...@sk-software.de fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. ----------------------------------------------------- -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components