Git Product home page Git Product logo

thumbnailer's People

Contributors

ethael avatar ilyazadyabin avatar martinhlavna avatar sergeshkurko avatar telmedola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

thumbnailer's Issues

How to create thumbnail for image pulled from file_picker package

Hello,

Thank you for your package. I was wondering how we can display an image that is of the "File" type retrieved from using the file_picker package.

I see in your example that we can only do asset images, is this correct?

My images are accessed this way:

return Image.file(
	File(_productsPictures[index].path!), 
	fit: BoxFit.cover,
);

Recreating thumbnail with new image

Hello!

Thanks for this plugin.

I seem to be having a problem, here is the workflow:

1.Thumbnail gets created with "_image":
Thumbnail(
dataResolver: () async {
return _image.readAsBytes();
},
mimeType: "image/" + _image.extension,
widgetSize: double.infinity,
)

  1. _image is changed to another image and setState is called and the thumbnail should be recreated.

I have a breakpoint when debugging on the line "return _image.readAsBytes();" and it is run on step 1, but after setState is called the thumbnail code is rerun, but never the line "return _image.readAsBytes();" and consequently, the image is not updated.

Perhaps i am missing something and there is no issue with the plugin.

Help appreciated.

Type 'DecoderCallback' not found In flutter 3.16

Upgrade to flutter 3.16

Package version : ^2.0.0

Error:

./../.pub-cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: Type 'DecoderCallback' not found. ImageStreamCompleter load(PdfPageImageProvider key, DecoderCallback decode)

Thumbnail for PDF

Hi there!
I want to ask that, does this plugin able to show a thumbnail when a pdf file is loaded from the device storage?

If yes, it would be really helpful and appreciable if you share the code for particular.

BTW Nice plugin!!

Can't add thumbnailer along with syncfusion_flutter_pdfviewer,font_awesome_flutter in dart 3.0.0

I am trying to add thumbnailer: ^2.2.0 in my project where I used font_awesome_flutter: ^10.4.0 and syncfusion_flutter_pdfviewer: ^21.2.3 which doesn't allow me to add thumbnailer.Below was the failed message that I got ๐Ÿ‘

Because thumbnailer >=2.1.0 depends on pdfx ^2.3.0 which depends on device_info_plus ^4.0.0, thumbnailer >=2.1.0 requires device_info_plus ^4.0.0. And because syncfusion_flutter_pdfviewer >=21.1.35 depends on device_info_plus ^8.1.0, thumbnailer >=2.1.0 is incompatible with syncfusion_flutter_pdfviewer >=21.1.35. So, because ourec_school depends on both syncfusion_flutter_pdfviewer ^21.2.3 and thumbnailer ^2.2.0, version solving failed.

Earlier I got the same kind of incompatibility for thumbnailer with font_awesome_flutter.

List of supported mime types in README

Would be a great addition to the README to have a list of currently supported formats for thumbnail creation and also for fallback icons,
as far as i can see, videos are not supported yet for both cases.

Can I add thumbnail in zip file?

I want to make comic viewer and add thumbnail in zip file.

I found this package but it don't look like support thumbnail for zip file.

Can you add zip support?

please update font_awesome_flutter

When running flutter pub get I get:

Running "flutter pub get" in capturing...                       
Because thumbnailer 2.0.1 depends on font_awesome_flutter ^9.0.0 and capturing depends on font_awesome_flutter 10.1.0, thumbnailer 2.0.1 is forbidden.
So, because capturing depends on thumbnailer 2.0.1, version solving failed.

Not able to create thumbnail for pdf from storage.

When I try to pick pdf from application storage and convert it into bytes as :
var bytes = File().readAsBytesSync().buffer.asUint8List();

And use this bytes in the thumbnail generation as:
Thumbnail(
dataResolver: () async {
return bytes;
},
mimeType: application/pdf,
widgetSize: 100,
)

It's not creating thumbnails for pdf.

Any help would be appreciated. Thanks.

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.