Log in

View Full Version : Avisynth Q - finding image or movie dimensions..


Fluffbutt
5th June 2006, 15:34
I use Avisynth for a wierd purpose..

Taking jpgs and resizing them BIG, with artifact removal (or grain removal, as needed).

ImageSource("Jennifer Love Hewitt 8.jpg")
ConverttoYV12().RemoveGrain() ## yv12 for rem grain and deen
ConvertToRGB32() ## rgb for imagewriter, yes, the changes are annoying..
Spline36Resize(4572,6126)
ImageWriter(type = "jpeg")

RemoveGrain is sometimes changed to deen() or some other smoother type tool.

Is there a way to tell avisynth the size of the jpg so I can make

Spline36Resize(4572,6126)

become

Spline36Resize(Horiz*2,Vert*2) with Horiz and vert being read from the input jpg? To save doing it manually... (and yes, I think JLH is gorgeous, and she loks great at 4572x6126.. LOL)

foxyshadis
5th June 2006, 16:21
Like, xResize(width*2, height*2)? :p

(Alien Skin Image Doctor is better at removing artifacts, but it's not free, and avisynth has the best sharpeners and other tools. =D)

If you're outputting the resize, you might want to look at the results of Eedi2, which looks a bit less blocky than spline: Eedi2().TurnLeft().Eedi2().TurnRight()

Fluffbutt
6th June 2006, 10:21
<blush mode on>

Oops - it's the most obvious damn things that get you, isn't it!!??

<blush mode off>

Thanks.. I'll try that.

I've tried Image Doc (trial), and some other pic resizer (forget the name), and they do a great job, but sometimes smooth things too much. Cheeks just become one mass of pink tones, whereas rel life blemishes look relistic, if you know what I mean..

Thanks again..