Log in

View Full Version : Unresize images


thewebchat
30th November 2013, 02:27
This is more a parlour trick than anything else, but here's a VapourSynth example plugin that undoes resizing:

Source: link (https://github.com/sekrit-twc/Unresize)
Binary: link (http://www.sendspace.com/file/im11x8)

Here's an example of it in action:

Original image
http://abload.de/thumb/seibahfzkv0.jpg (http://abload.de/image.php?img=seibahfzkv0.jpg)

Resized by 1.5x
http://abload.de/thumb/upscale_x1200e7kk9.png (http://abload.de/image.php?img=upscale_x1200e7kk9.png)

Unresized
http://abload.de/thumb/downscalel3ksk.png (http://abload.de/image.php?img=downscalel3ksk.png)

AviUser
30th November 2013, 19:17
Sounds, interesting but how do you use? Unresize()? Does it automatically detect what the original resolution was?

sl1pkn07
30th November 2013, 21:07
Hi

the project is windows centric?

howto build in linux?

greetimgs

thewebchat
30th November 2013, 22:25
Sounds, interesting but how do you use? Unresize()? Does it automatically detect what the original resolution was?

Of course not. You have to know that by some external means.

The syntax can be seen from VS core.list_functions(). Basically:

core.unresize.Unresize(clip, x, y)

foxyshadis
4th December 2013, 01:47
It's just a very barebones resize function that can be used as a sample by plugin writers. As an Avisynth plugin writer getting ready to take the VS plunge, I appreciate the effort.

Although the domain/namespace... yeah.

kolak
5th December 2013, 01:14
"VS_EXTERNAL_API(void) VapourSynthPluginInit(VSConfigPlugin configFunc, VSRegisterFunction registerFunc, VSPlugin *plugin)
{
configFunc("fuck.you.myrsloik.3", "unresize", "VapourSynth Unresize Example", VAPOURSYNTH_API_VERSION, 1, plugin);
- registerFunc("Unresize", ....
}"

Should that user be banned?

Jeroi
5th December 2013, 11:06
Hah most funny comment today. :D :D :D

TheFluff
5th December 2013, 16:05
we ban him from irc about once a quarter when he gets too annoying