crying2812
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Hi Patrik.
Here is all steps to solve my problemFirst. I added a filter to limit image size
add_filter('wp_handle_upload', 'resize_for_new_uploads', 10, 2); function resize_for_new_uploads($array, $context) { $ok = array('image/jpeg', 'image/gif', 'image/png', 'image/jpg', 'image/jpg'); if (!in_array($array['type'], $ok)) return $array; $editor = wp_get_image_editor($array['file']); if (is_wp_error($editor)) return $editor; $editor->set_quality(90); $editor->resize(800, 800, true); $editor->save($array['file']); return $array; }Second, i disabled uwp_resizeThumbnailImage() in /includes/class-forms.php, change it to : $cropped = $image_url; on line 1351 on mobile.
It happended when i take a photo using camera on Iphone or chosen some large images, my fix was rudimentary, but it solved my problem, hope this helps 🙂
Hi Patrik. I found the problem happened when user upload large image + system dont have any limit for image size. Thank you for quick reply.
Forum: Hacks
In reply to: Pagination cannot work in loop order by term id@bcworkz
tks for reply. Can u suggest me about that query or keyword for search , i’m beginner 🙁
Viewing 3 replies - 1 through 3 (of 3 total)