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

Add a function to do in-memory conversion #59

Merged
merged 4 commits into from
Nov 12, 2023

Commits on Oct 29, 2023

  1. Move path handling out of conversion functions

    This lets us decouple file reading/writing from the actual conversion.
    linkmauve committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    5cefa69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6cdef49 View commit details
    Browse the repository at this point in the history
  3. Remove path support from Config

    Instead the input_path and output_path have to be passed to
    convert_image_to_svg() manually.
    linkmauve committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    2b5b574 View commit details
    Browse the repository at this point in the history
  4. Add a simplified convert() function

    This lets the user convert an image from memory, without encoding it to
    PNG, writing it to a file, then reopening this file and decoding it
    using the image crate.
    
    It also allows the user to not write a SVG directly to a file.
    linkmauve committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    75e4b90 View commit details
    Browse the repository at this point in the history