home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MePo Tools - Download ClearArt/CDArt/ClearLogos, Music Video clips and more!
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 1214678" data-attributes="member: 18896"><p>That is how the tool (nconvert) I used in my script works.</p><p></p><p>Original post @ <a href="https://forum.team-mediaportal.com/threads/reduce-storage-size-of-thumbs-folder-movpic-tvseries.75750/" target="_blank">Reduce storage size of 'thumbs' folder (MovPic + TVSeries)</a></p><p></p><p>Feel free to download the ZIP file, and examine the basic batch file with the command line I use.</p><p></p><p>The way I wrote it was by using size thresholds, and used:</p><p></p><p>[code]nconvert.exe -quiet -out jpeg -ratio -resize 0 1080 -q 85 -rmeta -rflag decr -opthuff "%TMP%\MovPic.png" > nul[/code]</p><p></p><p>To first reduce the image, but then if it failed to become 350kB or less, I would use:</p><p></p><p>[code]nconvert.exe -quiet -out jpeg -ratio -resize 0 1080 -q 70 -rmeta -rflag decr -opthuff "%TMP%\MovPic.png" > nul[/code]</p><p></p><p>If that failed I would try:</p><p></p><p>[code]nconvert.exe -quiet -out jpeg -ratio -resize 0 960 -q 60 -soften 30 -rmeta -rflag decr -opthuff "%TMP%\MovPic.png" > nul[/code]</p><p></p><p>And then finally just accept that result, but add warning to log file if it still failed to get below the configured threshold.</p><p></p><p>The usage of MovPic.png was a file placeholder, because Moving-Pictures was storing filename in database, so I couldn't change extension to JPG but content conversion was not a problem. In the end the script works for any JPG or PNG file, and keeps the original filename, but it was easier to batch script it with fixed temp name for the conversion processing step.</p></blockquote><p></p>
[QUOTE="RoChess, post: 1214678, member: 18896"] That is how the tool (nconvert) I used in my script works. Original post @ [URL="https://forum.team-mediaportal.com/threads/reduce-storage-size-of-thumbs-folder-movpic-tvseries.75750/"]Reduce storage size of 'thumbs' folder (MovPic + TVSeries)[/URL] Feel free to download the ZIP file, and examine the basic batch file with the command line I use. The way I wrote it was by using size thresholds, and used: [code]nconvert.exe -quiet -out jpeg -ratio -resize 0 1080 -q 85 -rmeta -rflag decr -opthuff "%TMP%\MovPic.png" > nul[/code] To first reduce the image, but then if it failed to become 350kB or less, I would use: [code]nconvert.exe -quiet -out jpeg -ratio -resize 0 1080 -q 70 -rmeta -rflag decr -opthuff "%TMP%\MovPic.png" > nul[/code] If that failed I would try: [code]nconvert.exe -quiet -out jpeg -ratio -resize 0 960 -q 60 -soften 30 -rmeta -rflag decr -opthuff "%TMP%\MovPic.png" > nul[/code] And then finally just accept that result, but add warning to log file if it still failed to get below the configured threshold. The usage of MovPic.png was a file placeholder, because Moving-Pictures was storing filename in database, so I couldn't change extension to JPG but content conversion was not a problem. In the end the script works for any JPG or PNG file, and keeps the original filename, but it was easier to batch script it with fixed temp name for the conversion processing step. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MePo Tools - Download ClearArt/CDArt/ClearLogos, Music Video clips and more!
Contact us
RSS
Top
Bottom