Log in

View Full Version : change image-size inside getframe


E-Male
20th February 2005, 21:09
i got a problem with my ImageMagick processing plug-in
http://forum.doom9.org/showthread.php?s=&threadid=90148

the code works this way:
1. convert the frame to ImageMagick format
2. let ImageMagick process the image
3. convert it back to avisynth

now the problem is that step 2 can change the image size
but i couldn't get changes of the framesize work at that point of the code

any chance i could make this work?

Guest
20th February 2005, 21:18
Don't you know the new size at the time the filter constructor is called?

Manao
20th February 2005, 21:18
A clip's resolution is constant, and set at the initialization. So you have to compute during the initialization the size of the resulting picture, and assure that the resulting size will always be the same. Getting the size at initialization could be done by providing to image magik a fake picture whose resolution is the one of the input clip, but with garbage in it, for example.

E-Male
21st February 2005, 00:21
@neuron2: no

@Manao: of course, should have thought of that myself *bangs head against wall*

@neuron2 (part2): now i can find out :)