how to tweak ffmpeg image compression settings?

I'd like to adjust the image settings that ffmpeg uses to compress images on my site.  Where do I do this?  I've been a photographer and graphic artist using photoshop, etc over 20 years, so I know what I am doing, where do I tailor these settings?

I want to enable higher quality uploads (think jpg 96% vs right now it seems to be using bicubic and 82% +- )
and of course I found where to adjust the scale, inside settings, but I need more granularity in the settings.

Some of us do a lot of really high resolution artwork and we want it to look GOOD when you zoom in.

also: it is VERY interesting that if you change your ffmpeg version, you can no longer see images when you click "edit/add" inside your una site, for images that were compressed by the previous version of ffmpeg.   this is a problem for obvious reasons.  

  • 2102
  • More
Replies (9)
    • UNA are use php-gd or PHP-Imagick process images. PHP-Imagick are better than php-gd.

      https://github.com/unaio/una/wiki/Images-Transcoder

      • thank you , changed it.  :)

        • i still need to locate the parameters for modifying the jpg compression but i have been busy doing other things these past few days.   if anyone knows the exact file off the top of their head to look at (im assuming its php) let me know..  
          thanks :)

          • You may see the example set on the albums:

            INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES 

            ('bx_albums_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"300";s:13:"square_resize";s:1:"1";}', '0'),

            ('bx_albums_browse', 'Resize', 'a:1:{s:1:"h";s:3:"180";}', '0'),

            ('bx_albums_big', 'Resize', 'a:2:{s:1:"w";s:4:"1280";s:1:"h";s:4:"1280";}', '0'),

            So the bold parts mean the width / height and the size in pixels.

            • :)  is this arguments fed to scale2ref ?  
              i'm looking to specify lanczos3 vs bicubic or bilinear, for example, and adjust the quality to be higher (less compression.)
              i am not a fan of bilinear pixel order, and bicubic destroys most things except graphics. the advantage of lanczos3 seperable is it allows the pixel data to create its own matrix per image, rather than the way the matrixes are fit / averaged / weighted in other image algorithms. :)
              so this is what i would like to adjust, again, it's one of those php files :) would love to know which one, pleased to be advised,
              and thank you Leonid.
              :D
              oh and about earlier, yes snakes make their way into all software documentation, its part of the fun until you cannot find how to do something without grepping endless directories of code :D  // all things in good time..  at some point i would love to help author some documentation once i've learned more of the systems workings...  

              • I was talking to my sys-admin and she liked the way Dolphin did it better.  According to her, you could actually edit the arguments stored in the xml file that was passed to ffmpeg adding anything you wanted that could be passed to ffmpeg through the command line.

                • interesting.  theres a lot of dolphin code from what i can tell under the hood here..  

                  look at the filenames.  ;) course ive never ran dolphin so maybe its just a polite hat tip, but without having seen that codebase there's no way for me to guess, other than half of una team was developing dolphin, soo..  :)  ymmv :D

                  but i did just install the photos module and well tried to, and getting that fun "check module script compatibility" thing again, but i am using the current version of Una, and have just installed the new english..  *shakes head*  any ideas?  would love to get the photos module cooking, because i feel somehow photo carousel needs multiple sources, and yeah.. albums is interesting in most ways its okay but its rather clumsy, alltogether.

                  image_transcoder.php?o=bx_froala_image&h=3529&dpx=2&t=1588728199image_transcoder.php?o=bx_froala_image&h=3530&dpx=2&t=1588728412

                  • Hello Omar Amer !

                    Try to upgrade your core now https://una.io/page/view-discussion?id=5587  and then install Photos again.

                    • it works flawlessly now.  and it's a really beautiful module.   also, I have managed to convince the photos carousel to do its proper bidding as well..  It still inserted itself automatically somehow on profile, homepage, albums, (but not photos.. hahaha ?), and one additional location ...  I removed him and only now on photos..  looks fantastic, and accesses the correct position.. The page block now appears, as well.
                      also, for the first time in weeks, my site now logs in and does not stall on the login page (logs in but not refresh the page) which confuse all but technical oriented users.. it now logs in and loads the home page.  which is fantastic.  :-)

                      Login or Join to comment.