Old 01-27-2019, 08:35 AM   #1
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 559
Default Feature Request: New image scaling option

I wrote a script that detects scene cuts in video and put JPEG thumbnails on new items representing the cuts.

But the thumbnails look pretty crazy in practice because of the default image scaling strategy.

I think there should be an option to "scale images based on item height only" (it should center & crop the image too after scaling)

__________________
Convert NLE XMLs to RPP.
http://vordio.net

Last edited by mrlimbic; 01-27-2019 at 08:42 AM.
mrlimbic is offline   Reply With Quote
Old 01-27-2019, 09:43 AM   #2
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 983
Default

First: That script is a very clever idea. Very nice!

And yes, this preview looks a bit weird. But those thumbnails only get shrink because the item width is to small. If you zoom in, they all should fit in but also get repeated horizontally.

Do you mean you want the image stay at max height and that it should be cropped by the item boundaries? Because this would be the only option I could imagine. But this would crop it really far if the item is very small (short). And the chances are high that you then can't recognize anything if you zoom out to far. (Though you also can't see whats on the image wwith the actual behavior.)

Anyway. The option would be a good idea. And also the option to stop the repeating preview. (Or is this already possible?)
__________________
☆.。.:*・°☆.。.:*・°☆.。.:*・°☆REAPER//✿◔‿◔)°☆.。.:*・°☆.。.:*・°☆
Eliseat is offline   Reply With Quote
Old 01-27-2019, 09:49 AM   #3
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 559
Default

Quote:
Originally Posted by Eliseat View Post
First: That script is a very clever idea. Very nice!
My scipt is just a wrapper around a free tool called scenedetect. My script calls that to find cuts & generate the thumbnails. So that needs to be installed first.

https://pyscenedetect.readthedocs.io/en/latest/


Quote:
Originally Posted by Eliseat View Post
Do you mean you want the image stay at max height and that it should be cropped by the item boundaries? Because this would be the only option I could imagine. But this would crop it really far if the item is very small (short). And the chances are high that you then can't recognize anything if you zoom out to far. (Though you also can't see whats on the image wwith the actual behavior.)

Anyway. The option would be a good idea. And also the option to stop the repeating preview. (Or is this already possible?)
I couldn't find an option to change scaling strategy.

Yes I mean option to always use full item height, then centre and crop the image if not enough space.

Usually what you want to see most of is in centre anyway, so cropping a bit off won't matter - shrinking it makes it even less recognisable to me.
__________________
Convert NLE XMLs to RPP.
http://vordio.net
mrlimbic is offline   Reply With Quote
Old 01-27-2019, 03:55 PM   #4
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 810
Default

In the meantime, this thread might help, especially Justin's answer.

https://forum.cockos.com/showthread.php?t=214515
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 01-27-2019, 04:17 PM   #5
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 559
Default

Quote:
Originally Posted by mespotine View Post
In the meantime, this thread might help, especially Justin's answer.

https://forum.cockos.com/showthread.php?t=214515
That seems more to do with what happens in the video window than thumbnails on items.
__________________
Convert NLE XMLs to RPP.
http://vordio.net
mrlimbic is offline   Reply With Quote
Old 01-27-2019, 08:04 PM   #6
JamesPeters
Human being with feelings
 
JamesPeters's Avatar
 
Join Date: Aug 2011
Location: Near a big lake
Posts: 2,168
Default

Quote:
Originally Posted by mrlimbic View Post
That seems more to do with what happens in the video window than thumbnails on items.
Correct, plus only working with images that have transparency (using the image overlay preset)..plus it's been fixed with the latest update.
__________________
http://petersamplification.com
Core i3-6300 - MSI B150M Mortar - 8 GB RAM - Asus Xonar DX - MX Linux (MX-18_x64) - REAPER for Linux
JamesPeters is offline   Reply With Quote
Old 01-28-2019, 02:55 AM   #7
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 983
Default

Quote:
Originally Posted by mrlimbic View Post
My scipt is just a wrapper around a free tool called scenedetect. My script calls that to find cuts & generate the thumbnails. So that needs to be installed first.

https://pyscenedetect.readthedocs.io/en/latest/
Its still a great idea.

And I have to agree: It would be better to let the thumbnails untouched in their size. I remember, I also stumbled over this scaling problem while once creating a picture show. It looks ugly, makes the images unrecognizable and destroys the overall design of the arrange view.

So please allow an option or change it completely. Also the repeating isn't very helpful as it implies it would be a sequence or a video file instead of an image. Just the thumbnail at the beginning of the item should be okay.

Many thanks
ELi
__________________
☆.。.:*・°☆.。.:*・°☆.。.:*・°☆REAPER//✿◔‿◔)°☆.。.:*・°☆.。.:*・°☆
Eliseat is offline   Reply With Quote
Old 01-28-2019, 10:09 AM   #8
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 810
Default

Quote:
Originally Posted by mrlimbic View Post
That seems more to do with what happens in the video window than thumbnails on items.
Ah, you're right! My fault...
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 03-15-2019, 12:37 PM   #9
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 559
Default

*bump*
__________________
Convert NLE XMLs to RPP.
http://vordio.net
mrlimbic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.