AI Assistant
Notifications
Clear all

Uploaded image size/dimensions restriction not working with Imsanity

5 Posts
2 Users
1 Reactions
2,640 Views
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lubozviera)
New Member
Joined: 7 years ago
[#4019]

Hello,

my client uses on her site the wpDiscuz Media Uploader addon, but her users uploaded large image files. wpDiscuz settings allow to set the maximum image size to 1MB, but that's still too much. My client has over 20 000 comments on one of her pages, and it's growing fast.

We use the plugin Imsanity to limit the uploaded images dimensions (width/height), but the plugin doesn't fire on your plugin's upload. Id your plugin using the standard wp_handle_upload hook? Or is there some other way how to limit not only the file size of the images, but also the max width/height?

Thank you.

Lubo


4 Replies
Astghik
Posts: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi @lubozviera,

I'll need some recommendations from add-on developers to provide you the correct answer. 

I'm going to ask this question to add-on developers. I'll update the topic once I get news for you.


Reply
2 Replies
Astghik
Admin
(@astgh)
Joined: 8 years ago

Illustrious Member
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Hi @lubozviera,

the addon developers will add the functional hook in near future releases. 


Reply
(@lubozviera)
Joined: 7 years ago

New Member
Posts: 3
Astghik
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Thank you! I hope it will be added soon 🙂


Reply
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lubozviera)
New Member
Joined: 7 years ago

Hi Astghik,

was this functionality added in the latest release of your plugin, please?

Thank you.


Reply
Share:
Scroll to top