natsuk4ze / gal

How to Save Image or Video to Photo Gallery in Flutter
https://pub.dev/packages/gal
BSD 3-Clause "New" or "Revised" License
112 stars 17 forks source link

File name and return the new path #232

Closed dryasbk closed 1 week ago

dryasbk commented 3 months ago

Did you check the documentation and it did not help?

Proposal

1- It would be very nice to add option to add new name for the image/ video. 2- Return the new path of the saved media in it is album.

Use case

I am trying to save video from camera or pick it from gallery and save them in a special album for my app and save link in local database for easy back up of data, so just to copy exported database and the folder of media.

natsuk4ze commented 3 months ago

1- It would be very nice to add option to add new name for the image/ video.

The putImage and putImageBytes already allow names to be specified. @dryasbk

hoangcongtuan commented 2 months ago

1- It would be very nice to add option to add new name for the image/ video.

The putImage and putImageBytes already allow names to be specified. @dryasbk

The document and code did't have a file name parameter of putImage function

natsuk4ze commented 2 months ago

You can create the file name as you like and simply pass the path to "putImage". We do not plan to add the ability to rename existing files to this plugin.

Riz1ahmed commented 1 month ago

Returning the Saved path I think is mandatory. for example, After saving, I want to preview the saved video. So without knowing the path, it is not possible.

natsuk4ze commented 1 month ago

Returning the Saved path I think is mandatory

No. The file should exist locally at the time saveVideo is used. If so, simply specify the path to the file.

natsuk4ze commented 1 month ago

And here is why I am reluctant to work on returning file path.

natsuk4ze commented 1 week ago

This request comes in frequently, but I have never seen the correct use case. Once we do, we put it in the Close and then in the FAQ, and reopen this again if necessary.

natsuk4ze commented 1 week ago

https://github.com/natsuk4ze/gal/discussions/224