Flutter: Click | Pick | Crop | Compress an Image | AndroidX

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น •

  • @lowlydeveloper3693
    @lowlydeveloper3693 ปีที่แล้ว

    Very well done. Nicely explained 👍

  • @jimmyfmedina
    @jimmyfmedina 5 ปีที่แล้ว +1

    Excelent example, your channel is great to learn Flutter!

  • @shreyasr3552
    @shreyasr3552 5 ปีที่แล้ว +2

    Great example. Can you add an updated version of the code as Flutter now supports aspectRatio instead of ratioX and ratioY

  • @subramaniams5589
    @subramaniams5589 4 ปีที่แล้ว

    @MTECHVIRAL excellent. But for ios it seems not compressing. any solution. In your video also 20:55 you can see the both sizes are same:(

  • @wasimkabir4398
    @wasimkabir4398 5 ปีที่แล้ว +2

    Hi! Will you please create a tutorial on flutter webview, especially if the website has select or an input text element my app crashes.

  • @lenvaz6689
    @lenvaz6689 5 ปีที่แล้ว +1

    Hi Pawan, i have used the image_picker plugin recently and there is an option for imageQuality.. do you think that it can replace the flutter_image_compress plugin??

  • @martinrupertbulquerin228
    @martinrupertbulquerin228 5 ปีที่แล้ว +2

    Hi sir I have a question, is it possible to add timestamp text to an image captured via image_picker? Thanks!

  • @Kardenslayer
    @Kardenslayer 4 ปีที่แล้ว +1

    Greate video! Many thanks!

  • @devef
    @devef 4 ปีที่แล้ว +11

    There is a problem now, when is Compressing the image, Target path and source path cannot be the same.!
    'targetPath != path' , SO
    i solved like this:
    var result = await FlutterImageCompress.compressAndGetFile(
    croppedFile.path,
    image.path,
    quality: 50,
    );

    •  4 ปีที่แล้ว

      Genius

  • @mpauser8399
    @mpauser8399 5 ปีที่แล้ว +3

    Please make flutter layout tutorial with details explanation!!!

  • @naderkhaled9410
    @naderkhaled9410 5 ปีที่แล้ว +1

    Can you show how to use the Zooming Feature to the camera especially the camera package

  • @narenbisht1378
    @narenbisht1378 4 ปีที่แล้ว +1

    Is there any tool available for "freehand" image cropping in flutter?

  • @AHMAzimulHaque
    @AHMAzimulHaque 3 ปีที่แล้ว

    Thank you for your wonderful tutorial. But right now, no need to use the 'flutter_image_compress' plugin as 'image_cropper' plugin already provides a compressQuality parameter under the cropImage method. Just wanted to let the viewers know about it. Thanks again.

  • @Studi0usKidd0
    @Studi0usKidd0 4 ปีที่แล้ว

    Brilliant explanation!

  • @nividaweb3111
    @nividaweb3111 4 ปีที่แล้ว

    What about if multiple image selection only for auto compress feature, any idea how to do it

  • @varadgauthankar
    @varadgauthankar 5 ปีที่แล้ว +1

    bro please tell me where do you learn all this things to do?

  • @brain_racer
    @brain_racer 5 ปีที่แล้ว

    hi i am looking in V S Code editor path line 'tree line' in this video left side "how to add in my code editor"

  • @faizkazi2789
    @faizkazi2789 5 ปีที่แล้ว

    Very informative. Can u plz do a tutorial for reminder app which runs in flutter background to call a web service once a day

  • @HemangJoshi
    @HemangJoshi 5 ปีที่แล้ว +1

    Which plugin are you using to view that widget tree? I am searching for it for years.

    • @carlosspaini6370
      @carlosspaini6370 5 ปีที่แล้ว

      me too

    • @HelloCodepur
      @HelloCodepur  5 ปีที่แล้ว +1

      which widget tree part you are talking about? Can you share the screenshot?

    • @martinrupertbulquerin228
      @martinrupertbulquerin228 5 ปีที่แล้ว

      @@HelloCodepur He means the extension you used like Bracket Pair. But in your case it's like widget tree. Im also interested on that extension.

    • @GameManiac96
      @GameManiac96 5 ปีที่แล้ว

      @@HelloCodepur I would still like to know this... and also what Visual Studio Code theme you have installed. With widget tree, the above person btw means your VSCode plugin that shows where widgets start and end.

  • @umang.bhardwaj
    @umang.bhardwaj 4 ปีที่แล้ว

    Hi,

    • @umang.bhardwaj
      @umang.bhardwaj 4 ปีที่แล้ว

      Also there is a notification bar " Open for editing in Android Studio"

  • @MOULIEC109
    @MOULIEC109 4 ปีที่แล้ว

    Hai sir, I tried to repo but some how I am getting errors but not starting the app. Can I know what to do to start the app

  • @innovafrique
    @innovafrique 5 ปีที่แล้ว

    How can i seul a specifique document in a list of document in a stream???? I would like to query and modify a field in a specifique document. The document name is the currentUserId

  • @faizansalam
    @faizansalam 3 ปีที่แล้ว

    Can't pass same path to both field anymore; or it'll give error image path and target path can't be same

  • @KapilKumar-og4hz
    @KapilKumar-og4hz 9 หลายเดือนก่อน

    can we cropped it in circular manner

  • @samadshukr4111
    @samadshukr4111 4 ปีที่แล้ว

    why!when I have used compression jut return null and show image?

  • @rezwansaki
    @rezwansaki 4 ปีที่แล้ว

    there is a problem and exit the app with a message 'unfortunately exit the app'... when I use cropper package

  • @neloyrudra6654
    @neloyrudra6654 5 ปีที่แล้ว

    how user can crop image in any ratio they want?

  • @devidpatel7439
    @devidpatel7439 4 ปีที่แล้ว

    Target path and source path cannot be the same. ?? How can solve your video can same file path in pass argument

  • @hdkloh
    @hdkloh 5 ปีที่แล้ว

    How can we take multiple images and send it to the server...?

  • @surajkarmakar1559
    @surajkarmakar1559 4 ปีที่แล้ว

    How can we compress the network image directly?

  • @amigosfriends2104
    @amigosfriends2104 4 ปีที่แล้ว

    Awsome

  • @zakizubahir4334
    @zakizubahir4334 5 ปีที่แล้ว

    thanks.. much appreciated.

  • @RanjiRajesh
    @RanjiRajesh 4 ปีที่แล้ว

    GetImageFile method ImagePicker.PickImage not working

  • @ramjisubedi1991
    @ramjisubedi1991 4 ปีที่แล้ว

    how can i upload this image to the server

  • @anubhavgupta019
    @anubhavgupta019 4 ปีที่แล้ว +1

    Can we save it back with desired name i want for the image

    • @anubhavgupta019
      @anubhavgupta019 4 ปีที่แล้ว

      Do tell if there is a way to rename the image file if we pick it from gallery !! I have been trying but couldn't find any solution

  • @bhagyakarunatilleke9425
    @bhagyakarunatilleke9425 5 ปีที่แล้ว

    Hi. When I use the image_cropper to crop the image, the quality of the image gets reduced a lot. Is there any way to fix this?

    • @HelloCodepur
      @HelloCodepur  5 ปีที่แล้ว

      Did you watch the full video?

    • @bhagyakarunatilleke9425
      @bhagyakarunatilleke9425 5 ปีที่แล้ว

      @@HelloCodepur Yes I did. I didn't pay much attention to the iOS part though since I'm developing for Android only right now.
      Removing the maxHeight and maxWidth of image_cropper fixed the quality issue.
      Thank you so much for this detailed video. It helped me so much in learning flutter 😃

  • @vrexperience8762
    @vrexperience8762 4 ปีที่แล้ว

    Image cropper is now useless, it breaks when you exit the app and open the app again. It says no implementation found for cropimage function.

  • @arcubers
    @arcubers 4 ปีที่แล้ว

    it showing error like
    A problem occurred configuring project ':image_picker'.
    > Could not resolve all artifacts for configuration ':image_picker:classpath'.
    > Could not download builder.jar (com.android.tools.build:builder:3.3.0)
    > Could not get resource 'dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar'.
    > Could not GET 'dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar'.
    > Connect to dl.google.com:443 [dl.google.com/172.217.166.78] failed: Connection timed out: connect
    > Failed to notify project evaluation listener.
    > Could not get unknown property 'android' for project ':image_picker' of type org.gradle.api.Project.
    > Could not find method implementation() for arguments [project ':flutter_plugin_android_lifecycle'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    * Get more help at help.gradle.org
    BUILD FAILED in 1m 39s
    Finished with error: Gradle task assembleDebug failed with exit code 1

  • @sasha2209
    @sasha2209 4 ปีที่แล้ว

    Thank you so much !!!!!

  • @techrockzz6682
    @techrockzz6682 4 ปีที่แล้ว

    Sir please make a video on flutter video editing app

  • @arcubers
    @arcubers 4 ปีที่แล้ว

    can you provide the solution please

  • @rishabh719
    @rishabh719 5 ปีที่แล้ว

    This image crop is not height width flexible as shown in the pub dev

  • @coqoa6842
    @coqoa6842 2 ปีที่แล้ว

    ㅁㄴㅇ