In field type / Image Upload we only have 3 options (no cropping / square 1:1 / user defined).
the best way to do it would be to add a fourth option with my custom ratio (1.91:1)
A dirty way would be to change the ratio of the SQUARE option. I went to ultimate-member/includes/core/class-fields.php and changed $array['ratio'] = 1.0;
to =1.91;
But it does not work It does not change the ratio of the cropper-dragger
Maybe something to change in Javascript ? /plugins/ultimate-member/assets/js/um-crop.min.js
Any Help please ?
]]>I’m building an add-on that has a problem with the default image
I followed this link https://github.com/…/blob/m…/docs/content/controls/_media.md
Because I use those
namespace Widgets;
I use instead of
namespace Elementor;
I having trouble in this section, Can you guide me to make up for the deficiencies that are in the add-on for default image?
'default' => [
'url' => Utils :: get_placeholder_image_src (),
],
Also one more thing, I couldn’t be included theme image cropper size I think the below code is correct; but, I returned to above issue
Group_Control_Image_Size::get_type(),
I appreciate your help.
https://scontent-lga3-1.xx.fbcdn.net/v/t1.0-9/27332616_1545075135575062_6494311033501010903_n.jpg?oh=62d55ac76388cb51d0c5207d5373640f&oe=5B230392
Please Note: I don’t have any Error in back-end and front-end.
Many Thanks
]]>Using the latest versions 1.2, the popup box comes up, but there’s no image.
https://www.ads-software.com/plugins/nextgen-image-cropper/
]]>I tried to upload a much smaller size and the cropper does the same thing. It soes not extend across my image, therefore cutting out a part of my image.
]]>I won’t be adding galleries to my blog, just one image per post, basically. I’m using Add-linked-images-to-gallery-v01 to automatically download the images.
Now what I want is:
Width: 150px max
Height: according to proportions
Keep only the resized image on my uploads folder (I don’t want the original, just the thumbnail).
Is there such thing?
]]>Anyway, I embeded one of my Flickr pictures and while it shows fine in the post, it shows a broken image icon on the homepage. The image address of that icon is
https://example.com/blogfiles/themes/news-magazine-theme-640/cropper.php?src=farm3.static.flickr.com/2137/1111111111_1111111111.jpg&h=142&w=200&zc=1&q=95
and it produces the error:
farm3.static.flickr.com/2137/1111111111_1111111111.jpg not found.
(The real image doesn’t have all 1s, I replaced that for privacy here. This link with all the 1s doesn’t work, the one it actually complained about in the error does.)
I noticed it does work when I copy the image to my WP uploads folder and link it from there, but it would be nice if I could save that step and use my Flickr pics directly.
Also, is there some documentation as to how this cropper.php works – how it chooses where to crop, how I can control it, whether it crops at all if the image is already the right size, etc.? And what is the right size for the various thumbnails used throughout thr theme? Finally, are these thubnails recreated again and again at every pageview (server killer!!) or are they saved somewhere after the first hit?
]]>