Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept different sampling filters on resize #44

Closed
5 tasks done
foresterre opened this issue Aug 24, 2018 · 1 comment
Closed
5 tasks done

Accept different sampling filters on resize #44

foresterre opened this issue Aug 24, 2018 · 1 comment
Assignees
Labels
C-enhancement Category: enhancements
Milestone

Comments

@foresterre
Copy link
Owner

foresterre commented Aug 24, 2018

syntax:

  • Must have a syntax limited to tokens available in the ASCII set
  • Must support letters, numbers and some type of word separator
  • Must be unordered
  • Must support both Key Value and Flag
  • Must be reusable as syntax (i.e. like a general "data structure") with sic script v1
  • Should be accessible to type from the command line
  • Should be accessible to type within a file
  • Should be easy to read

Ideas for syntax:

  • resize x y <optional format>

  • resize 4 5 == resize 4 5 :sampling_filter gaussian

  • resize 4 5 :sampling_filter lanczos3

  • resize 4 5 -sampling-filter lanczos3

  • resize 4 5 +sampling-filter lanczos3

  • resize 4 5 #sampling-filter lanczos3

  • resize 4 5 (sampling-filter: lanczos3)

  • resize 4 5 {sampling-filter: lanczos3}

selected choice:

  • setopt resize <option> <option value>
    • setflag resize <flag>
  • resize <x> <y>

examples:
cargo run -- --apply-operations "setopt resize sampling_filter triangle;resize 50 50" ./resources/bwlines.png ./target/o.png

--

PR: #102
Related:

@foresterre foresterre self-assigned this Aug 24, 2018
@foresterre foresterre added this to the 0.8.0 milestone Aug 24, 2018
@foresterre foresterre added the C-enhancement Category: enhancements label Aug 24, 2018
@foresterre foresterre added this to next planned in image transformation commands Nov 20, 2018
@foresterre foresterre modified the milestones: 0.8.0, 0.9.0 Nov 20, 2018
@foresterre foresterre added the S-in-progress Status: work in progress label Dec 27, 2018
@foresterre
Copy link
Owner Author

implemented in #102

@foresterre foresterre removed the S-in-progress Status: work in progress label Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancements
Projects
No open projects
Development

No branches or pull requests

1 participant