Coder Social home page Coder Social logo

Comments (5)

qiqetes avatar qiqetes commented on June 14, 2024

No problem with typed_image in the 3.0.4 version

from fast_image_resize.

Cykooz avatar Cykooz commented on June 14, 2024

Method typed_image() is implemented for fast_image_resize::images::{Image, ImageRef} structs, not for image::DynamicImage.

Version 3.0.4 doesn't have method typed_image() at all.

from fast_image_resize.

qiqetes avatar qiqetes commented on June 14, 2024
use std::io::BufWriter;

use fast_image_resize::Resizer;
use image::io::Reader as ImageReader;

use fast_image_resize::images::{Image, ImageRef};
use image::codecs::png::PngEncoder;
use image::{ExtendedColorType, ImageEncoder};

Those are my imports. Still getting the same error.

Yup, It doesn't have the method typed_image(), I confused it with pyxel_type()
fast_image_resize = {version = "4.0.0", features=["image"]} I'm kind of new to rust, so probably I got something wrong, but everything was workign for me on the 3.0.4 and now can't get it to work

from fast_image_resize.

Cykooz avatar Cykooz commented on June 14, 2024

Could you tell me that you want to do and show more code that worked with 3.0.4?

from fast_image_resize.

qiqetes avatar qiqetes commented on June 14, 2024

It appears to be working now. I haven't made any changes to the .toml file. Apologies

from fast_image_resize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.