Home Forums Plugin Support WP User Frontend Pro Image upload file size

This topic is: not resolved

This topic contains 9 replies, has 2 voices, and was last updated by  towhid 4 years, 1 month ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #36818

    Steve Kim
    Member
    Post count: 39

    Hi.

    So, on the mobile, I am using a Feature image upload button.

    When the button is pressed, an user can take a photo using the phone.

    However the size of the photo is approximately 2.8 Mb.

    Is there a way to reduce the image size when uploading?

    For example, after a photo has been taken, the photo size is either reduced or only use thumbnail size for the upload.

    The issue is that, it takes too long to upload if the image is over 2MB.

    Thank you.

    #36824

    towhid
    Participant
    Post count: 4505

    Hello Steve,

    I am really sorry to say that, we do not this feature right now. But I will discuss about this feature to our developer team. Hope they will implement this feature in near future.

    Thank You ๐Ÿ™‚

    #36835

    Steve Kim
    Member
    Post count: 39

    Thank you for the reply.

    Could you give me a guidance to where to even start while I wait for the update?

    I know you guys are busy and maybe I can figure it out how to do it if you give me a guidance.

    Thank you so much!

    Steve

    #36844

    Steve Kim
    Member
    Post count: 39

    Hi.

    So I found this article: http://www.plupload.com/docs/Image-Resizing-on-Client-Side

    In the file, it shows some php code that will enable resizing the image.

    Could you tell me how to do it (or change the code) so that the image size width and height is just 350px long.

    Any help will be super appreciated!

    Thank you!

    #36847

    Steve Kim
    Member
    Post count: 39

    So, little update:

    looks like I need to pass “resize” option as following:

    var uploader = new plupload.Uploader({
      browse_button: 'browse', // this can be an id of a DOM element or the DOM element itself
      url: 'upload.php',
      resize: {
        width: 350,
        height: 350
      }
    });

    Would you be able to tell me where and any modification to the code for the upload image size to be smaller?

    Thank you very much

    #36901

    towhid
    Participant
    Post count: 4505

    Hello Steve,

    Please check WP Smush.it plugin. I think it will meet your demand. Please follow this link – https://wordpress.org/plugins/wp-smushit/ to download and know more about this plugin.

    Thank You ๐Ÿ™‚

    #36903

    Steve Kim
    Member
    Post count: 39

    Hi.

    Thank you for the reply.

    Well, I do use WPsmush.it but it resizes image after it is uploaded on the server side.

    The tutorial that I found from Plupload is for “client side”, meaning it will resize the image even before image is uploaded :http://www.plupload.com/docs/Image-Resizing-on-Client-Side

    What do you think that I need to do?

    Really appreciate it! ๐Ÿ˜€

    Thank you

    #36983

    towhid
    Participant
    Post count: 4505

    Hello Steve,

    We can not help you regarding this issue. Please try this code for yourself and let me know the result.

    You can hire a developer by post this topic in popular online marketplace.

    Thank You ๐Ÿ™‚

    #36991

    Steve Kim
    Member
    Post count: 39

    Thank you but I got it working.

    Thanks.

    #36995

    towhid
    Participant
    Post count: 4505

    Hello Steve,

    I am really happy that it is working for you. I am going to mark this topic as resolved.

    Thank You ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Image upload file size’ is closed to new replies.