easyimg_utils 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - checksums.yaml.gz.sig +0 -0
 - data/lib/easyimg_utils.rb +19 -2
 - data.tar.gz.sig +0 -0
 - metadata +22 -2
 - metadata.gz.sig +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 98a85bab76bed1f59c4a7d78a6e931bc6b6bd8661ff489259b2280e263d97d15
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 15c99048d0df0d559022b67bb64563d12c4baf2e0d15ce6a315c737a37f150f1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f30f0721935c5d4aef4128504e7709f8b6ad539ba466410d428ce8326ca3e0195857ea16768f06e70839f084d4e92043012551106d6b09f001ea191689fc9e36
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b0f77a276d1f71d942a1b8bbe696ec51d4bfc8ec9cd8ea088a66c7eda62e87a7666d68b6c35dc8613706a38b797c2997f1ba140d4ee2c21cc9747598e6e7c494
         
     | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/easyimg_utils.rb
    CHANGED
    
    | 
         @@ -3,9 +3,10 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
            # file: easyimg_utils.rb
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            require 'c32'
         
     | 
| 
       6 
     | 
    
         
            -
            require ' 
     | 
| 
      
 6 
     | 
    
         
            +
            require 'x4ss'
         
     | 
| 
       7 
7 
     | 
    
         
             
            require 'rmagick'
         
     | 
| 
       8 
8 
     | 
    
         
             
            require 'webp_ffi'
         
     | 
| 
      
 9 
     | 
    
         
            +
            require 'rxfhelper'
         
     | 
| 
       9 
10 
     | 
    
         | 
| 
       10 
11 
     | 
    
         
             
            # requirements:
         
     | 
| 
       11 
12 
     | 
    
         
             
            #
         
     | 
| 
         @@ -69,6 +70,7 @@ class EasyImgUtils 
     | 
|
| 
       69 
70 
     | 
    
         
             
            * rotate_left
         
     | 
| 
       70 
71 
     | 
    
         
             
            * rotate_right
         
     | 
| 
       71 
72 
     | 
    
         
             
            * scale # Scales an image by the given factor e.g. 0.75 is 75%. see also resize
         
     | 
| 
      
 73 
     | 
    
         
            +
            * screencast # records a screencast and saves it as animated gif. e.g. (out: '/tmp/fun.gif').screencast
         
     | 
| 
       72 
74 
     | 
    
         
             
            * sketch # renders an artistic sketch, ideal with simplistic photos
         
     | 
| 
       73 
75 
     | 
    
         
             
            * view # view the output
         
     | 
| 
       74 
76 
     | 
    
         
             
            * vignette # Feathers the edge of an image in a circular path
         
     | 
| 
         @@ -380,8 +382,23 @@ class EasyImgUtils 
     | 
|
| 
       380 
382 
     | 
    
         
             
                end
         
     | 
| 
       381 
383 
     | 
    
         | 
| 
       382 
384 
     | 
    
         
             
              end
         
     | 
| 
      
 385 
     | 
    
         
            +
             
     | 
| 
      
 386 
     | 
    
         
            +
              # Currently the screencast has no options. It will capture the screen 
         
     | 
| 
      
 387 
     | 
    
         
            +
              # every second for a duration of 6 seconds.
         
     | 
| 
      
 388 
     | 
    
         
            +
              #
         
     | 
| 
      
 389 
     | 
    
         
            +
              def screencast()
         
     | 
| 
      
 390 
     | 
    
         
            +
                
         
     | 
| 
      
 391 
     | 
    
         
            +
                fileout = @file_out.sub(/\.\w+$/,'%d.png')
         
     | 
| 
       383 
392 
     | 
    
         | 
| 
      
 393 
     | 
    
         
            +
                puts 'fileout: ' + fileout if @debug
         
     | 
| 
       384 
394 
     | 
    
         | 
| 
      
 395 
     | 
    
         
            +
                x4ss = X4ss.new fileout, mouse: true, window: true
         
     | 
| 
      
 396 
     | 
    
         
            +
                sleep 2; x4ss.record # then go to the target window, wait 2 seconds and go
         
     | 
| 
      
 397 
     | 
    
         
            +
                x4ss.save
         
     | 
| 
      
 398 
     | 
    
         
            +
                
         
     | 
| 
      
 399 
     | 
    
         
            +
                EasyImgUtils.new(fileout, @file_out).animate
         
     | 
| 
      
 400 
     | 
    
         
            +
                
         
     | 
| 
      
 401 
     | 
    
         
            +
              end
         
     | 
| 
       385 
402 
     | 
    
         | 
| 
       386 
403 
     | 
    
         
             
              def sketch(quality: nil)
         
     | 
| 
       387 
404 
     | 
    
         | 
| 
         @@ -435,7 +452,7 @@ class EasyImgUtils 
     | 
|
| 
       435 
452 
     | 
    
         
             
                  globfilepath = file.sub('%d','*')
         
     | 
| 
       436 
453 
     | 
    
         | 
| 
       437 
454 
     | 
    
         
             
                  a = Dir[globfilepath]
         
     | 
| 
       438 
     | 
    
         
            -
             
     | 
| 
      
 455 
     | 
    
         
            +
                  puts 'a: '  + a.inspect if @debug
         
     | 
| 
       439 
456 
     | 
    
         
             
                  a.sort_by {|x| Regexp.new(regfilepath).match(x).captures[0].to_i }      
         
     | 
| 
       440 
457 
     | 
    
         | 
| 
       441 
458 
     | 
    
         
             
                else
         
     | 
    
        data.tar.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: easyimg_utils
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.6.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - James Robertson
         
     | 
| 
         @@ -35,7 +35,7 @@ cert_chain: 
     | 
|
| 
       35 
35 
     | 
    
         
             
              KY48n99T12IOioQ4ghCO1L/UAg2taLOcZbMv4WpV1p9bXKhnrow81zeogZjjiNGS
         
     | 
| 
       36 
36 
     | 
    
         
             
              OmTAjCfyGFPC/1eXnSV5Smv8
         
     | 
| 
       37 
37 
     | 
    
         
             
              -----END CERTIFICATE-----
         
     | 
| 
       38 
     | 
    
         
            -
            date: 2020-05- 
     | 
| 
      
 38 
     | 
    
         
            +
            date: 2020-05-13 00:00:00.000000000 Z
         
     | 
| 
       39 
39 
     | 
    
         
             
            dependencies:
         
     | 
| 
       40 
40 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       41 
41 
     | 
    
         
             
              name: rmagick
         
     | 
| 
         @@ -97,6 +97,26 @@ dependencies: 
     | 
|
| 
       97 
97 
     | 
    
         
             
                - - ">="
         
     | 
| 
       98 
98 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       99 
99 
     | 
    
         
             
                    version: 0.2.7
         
     | 
| 
      
 100 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 101 
     | 
    
         
            +
              name: x4ss
         
     | 
| 
      
 102 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 103 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 104 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 105 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 106 
     | 
    
         
            +
                    version: 0.2.0
         
     | 
| 
      
 107 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 108 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 109 
     | 
    
         
            +
                    version: '0.2'
         
     | 
| 
      
 110 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 111 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 112 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 113 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 114 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 115 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 116 
     | 
    
         
            +
                    version: 0.2.0
         
     | 
| 
      
 117 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 118 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 119 
     | 
    
         
            +
                    version: '0.2'
         
     | 
| 
       100 
120 
     | 
    
         
             
            description: 
         
     | 
| 
       101 
121 
     | 
    
         
             
            email: james@jamesrobertson.eu
         
     | 
| 
       102 
122 
     | 
    
         
             
            executables: []
         
     | 
    
        metadata.gz.sig
    CHANGED
    
    | 
         Binary file 
     |