brendan-duncan / image

Dart Image Library for opening, manipulating, and saving various different image file formats.
MIT License
1.17k stars 266 forks source link

JpegData method missing #482

Open Mike-3 opened 1 year ago

Mike-3 commented 1 year ago

After upgrade to 4.0, I can't found not the class JpegData or a suitable alternative. I need the comment and adobe data. What is the new way of getting this information?

S-Man42 commented 1 year ago

+1

I needImage.blendMethod and Image.channels as well :(

brendan-duncan commented 1 year ago

Sorry for the delay, I'll get back to you as soon as I can.

brendan-duncan commented 1 year ago

I pushed a change to git to add JpegData back to the export list for the library. I'll see if there's a better way to get that info into the Image class so you don't need to access the low level JpegData class, but life is pretty hectic right now so I might not be able to get to it for a bit.

brendan-duncan commented 1 year ago

@S-Man42 blendMethod was used to specify what type of compositing was needed for partial animated frames, but now all frames are always complete frames, so they don't need explicit compositing. That's why it was removed. Image.channels just informed you if the alpha channel was to be used or not since all images always had 4 channels. Now images can have variable number of channels, so numChannels tells you how many channels the image has, typically 3 (rgb) or 4 (rgba).

I know for such a big change as 3.0 to 4.0 it really needed good "what changed" documentation, but really I ran out of time, and I'm not very good at writing documentation.

Mike-3 commented 1 year ago

Thanks

MithaqAlyamany commented 7 months ago

رسائل الخطأ إلى أن الملف `jpeg_adobe.dart مفقود أو لم تتم الإشارة إليه بشكل صحيح.