Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'crop'

Viewing 25 results - 126 through 150 (of 1,245 total)
  • Author
    Search Results
  • #275071
    r-a-y
    Keymaster

    It’s probably something to do with your theme’s CSS if I had to guess.

    Try switching temporarily to one of the WordPress default themes to see if it works. If it does, can you list your theme? Perhaps we can hardcode some CSS rules so the cropping box is correctly-sized.

    #274750
    shashankmestry
    Participant

    Yes. Resolved it. It was due to JetPack image lazy load conflict. Disabled it as of now, and image crop is working.

    #272996
    John
    Participant

    Hi Vapvarun,

    Thank you for this. It looks like the Crop Image button was breaking and surrounding the image. I’m not sure if it was designed that way, but it has been very confusing for the site users.

    I’ve fixed the issue in the CSS and I now see a button like the one shown in your video.

    I appreciate the help.

    John

    #272981
    Varun Dubey
    Participant

    @johnmcole after upload you will have crop action and it will save avatar after your crop selection
    https://drive.google.com/a/wbcomdesigns.com/file/d/1uPb8Ct6iNZyUg5DqYP3MyZIo1xijXMf6/view?usp=drivesdk

    #272415
    John
    Participant

    It was v2.9.3.

    I have just found that the previous developer had modified a core file:

    Line 603 in /bp-core/js/avatar.js (& avatar.min.js):

    
    // Add the cropping interface
    			tocrop.Jcrop( {
    				onChange: _.bind( self.showPreview, self ),
    				onSelect: _.bind( self.showPreview, self ),
    				// CUSTOM CODE START
    				// THIS ALSO NEEDS UPDATING ON 'avatar.min.js' !!! //
    				aspectRatio: 1.72817,
    				// CUSTOM CODE END
    				/* CUT SECTION
    				aspectRatio: self.options.aspectRatio,
    				*/
    				setSelect: [ crop_left, crop_top, crop_right, crop_bottom ]
    			}, function() {
    				// Get the Jcrop API
    				bp.Avatar.jcropapi = this;
    			} );
    

    I re-applied this modification to avatar.js and avatar.min.js but it did not resolve the issue.

    Any ideas?

    #271450
    Carsten Lund
    Participant

    Yes, not least because the dimension of the image is important for better results, according to the guideline:
    “For better results, make sure to upload an image that is larger than 720px wide, and 225px tall.”

    The users are not nerds, why not help them by showing a cropping tool, so they can choose which part of the image they want displayed within this dimension?

    #271445
    stokim2012
    Participant

    @dcavins
    I strongly agree with guys.
    Why does not Buddypress offer cover image crop but profile image?
    It’s hardly choose cover image users want!
    Please offer cover image crop.

    #271386
    Carsten Lund
    Participant

    Hi David, the problem is you can’t select which part of the larger image is displayed when you can not crop it yourself.

    Disabling cover images leaves a gray box where the image has been, this is not what you want.

    Regards

    #271382
    David Cavins
    Keymaster

    The blurriness is a result of the image being cropped to smaller than the size needed to display it, or starting with an image that is too small to begin with. I’m afraid that disabling the cropping functionality wouldn’t completely solve your problem. The cropping tool does show a preview of the resulting image, so in any case, your users shouldn’t be surprised that the result is blurry–they can see the result before accepting the crop. 🙂

    #271366
    Carsten Lund
    Participant

    Whats the logic in that you can crop the profile image, but not the cover image – not least because an image inserted as cover image is distorted when displayed in the profile?

    I wish there were an option for not having the cover image, or at least in settings, having the choice of choosing a preset color. This can be done by CSS, but…

    Regards
    Carsten

    ds123
    Participant

    hello when i upload a cover image nothing happens so the user will assume it didn’t work because the cover image doesn’t show up ….how do fix this so it refreshes and reveals the uploaded image? the avatar works correctly and lets you see it after cropping

    #271003
    pd9soft
    Participant

    I also have this problem, on a windows server.

    The issue seems to be that $cover_dir contains a full filesystem path ex C:\Hosting\Website\wp-content\[…] which then fails on line 1317 of bp-core-attachments.php

    if ( 0 !== validate_file( $cover_dir ) || ! is_dir( $cover_dir ) ) {

    validate_file returns a “2” as the path has a colon in the second character position.

    Removing this check allows the code to continue, but it still fails on the resizing and cropping.

    #270938

    In reply to: Problem crop image

    Varun Dubey
    Participant

    @agenceglanum

    The PHP GD2 library is necessary on your server to handle images. In case of issues with common image handling and/or image cropping, ensure that your PHP has GD library enabled.

    On hosted servers, it is generally the case, but not on local with WAMP for example.

    You can check with your hosting support or create a phpinfo file, it will also help check GD support.

    #269965
    leog371
    Participant

    Hi TFord06, It looks like this is a duplicate post of your other post “Buddypress Avatar Cropping Mobile – Portrait”. I have replied on your other posting.
    Please try to limit your queries to just one post please. It helps keep the clutter down in the forums. Thanks

    #269152
    DragoWeb
    Participant

    Hi, I have this error message

    “There was a problem cropping your profile photo.”

    when I try to upload an avatar image with a width of 450px and above. Starting to 451px it works (even with an height of 150px). I get a warning message only if I try to upload an image under 150x150px :

    “You have selected an image that is smaller than recommended. For best results, upload a picture larger than 150 x 150 pixels.”

    So, I suppose this problem doesn’t come from a setting option somewhere.

    The problem is the same when I switch to the default theme Twenty Fifteen and I have no other plugin activated (except HideMySite). Cover image works without problem. Cropping image works with Ultimate-member plugin and in WP admin -> Media -> Edit/crop as well.

    Config:
    Wordpress (new install) v4.9
    Buddypress 2.9.2
    php 5.6
    GD enabled

    Thanks.

    #268409
    durvilchat
    Participant

    Hello my brother not really but I manage this with the method bp_core_avatar_handle_crop () which produces me a satisfactory result. So you can use it.

    #267591
    khappamj
    Participant

    Hi man , the Buddypress version i use is 2.9.0 and this problem is about every images. Its working but the cropping image tool is very very small, just 1×1 or 2×2 pixels, so its unusable for users.
    I dont think the issue is about images,
    so what can i do?

    khappamj
    Participant

    Hi please i have a problem,
    if i wanna change or add an avatar or profile image, once the upload has finished and i have to edit the image, the cropping square appears to be 1×1 pixel large.
    Everything seems to be working just like cropping icon and function but the rectangle is just 1×1 pixel.
    How can i solve this?

    #267039
    enacta2
    Participant

    @r-a-y a ticket for this issue with WP Rocket is active on WP Rocket’s GitHub: bug report for broken BuddyPress profile cropping

    It appears the issue is CDN rewrite by WP Rocket. I’m going to ping the ticket assignee to see if they’re making any progress.

    Do you want to lend a hand to the WP Rocket people, if they need the help? (Maybe it could get this done sooner. The ticket has been open for more than 3 months!)

    #267025
    enacta2
    Participant

    @r-a-y OK I figured out the problem. It’s with WP Rocket plugin. I have been trying to configure WP Rocket so it doesn’t cache or add performance options but haven’t been able to fix it yet. I tried excluding pages from cache. I’m using WP Rocket 2.10.6.


    @autox420
    thanks for the suggestion. For some reason my localhost copy with WP Rocket running doesn’t break Buddypress croping. But does break it on my live site.

    #266986
    enacta2
    Participant

    @r-a-y I’ve tried quite a few files, most recently the name was “a.jpg” and “a.png”

    I tested 2.9 beta and it didn’t fix the issue.

    I updated my localhost dev site to PHP 7.1.7, with all the same plugins running, including BuddyPress 2.8.2, and image cropping worked. But it still isn’t working on the live site.

    The only plugin I’m using that’s dependent upon BuddyPress is ‘bbp buddypress profile information’

    The bbPress pluings I’m using, besides bbPress 2.6.rc-3 and the profile info plugin, are bb Style Pack and bbPress Move Topics

    #266706

    In reply to: Using animated avatars

    Anonymous User 13302461
    Inactive

    I cannot find a solution and it seems strange that BP forces a crop on *any* size image.

    If image is already 150×150 (or whatever) then why force crop?

    So if anyone can find a hack to disable the forced cropping or add a “Skip crop”, that’s what we need.

    #265857
    threwthenevr
    Participant

    Thank you for the reply.
    Unfortunatly thats not what i was trying to do.
    Here’s what iv done so far.

    I created an empty file in /kleo-child/buddypress/members/single and named index-action-change-avatar.php

    in /kleo-child/buddypress/members/single/index-action-change-avatar.php i’ve copied/pasted the content of the bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php template.

    added get_header(); before the pasted content and get_sidebar(); & get_footer(); after it.

    I then copied the code fron change-avatar.php and pasted it to my newly created page(Avatar Upoload).

    it works but it has some template issue.
    upload
    not sure how to fix that yet but im still searchng, the actual upload and crop part im sure to have issues to sort out there as well.

    #263617
    warezit
    Participant

    Hello!

    I am having an issue with BP, that I caused myself. I intentionally deactivated, then deleted, BP (on a 5 day old site) thinking that I wasn’t going to use it. Then I ran ‘WP Optimize’ which removed all the unused tables from the plugins I had installed, and removed unused transients, etc… This is what caused the problem.

    Some time later, I went to re-install BP – which succeeds with no issues. Here’s where the issues crop up… Next, I went to create a new Group on the BP front-end, and it reports an error:
    There was an error saving group details. Please try again.

    Enabling WP debug mode in “wp-config.php” reports this:

    WordPress database error: [Table 'wordpress.wp_bp_groups' doesn't exist]
    SELECT id FROM wp_bp_groups WHERE slug = 'create'
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1
    WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist]
    SHOW FULL COLUMNS FROM <code>wp_bp_activity</code>
    WordPress database error: [Table 'wordpress.wp_bp_notifications' doesn't exist]
    SELECT * FROM wp_bp_notifications n WHERE user_id IN (1) AND component_name IN ('friends','messages','activity','groups','blogs') AND is_new = 1
    WordPress database error: [Table 'wordpress.wp_bp_messages_recipients' doesn't exist]
    SELECT SUM(unread_count) FROM wp_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0
    WordPress database error: [Table 'wordpress.wp_bp_friends' doesn't exist]
    SELECT id FROM wp_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC
    WordPress database error: [Table 'wordpress.wp_bp_groups_members' doesn't exist]
    SELECT COUNT(DISTINCT m.group_id) FROM wp_bp_groups_members m, wp_bp_groups g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1
    WordPress database error: [Table 'wordpress.wp_bp_messages_notices' doesn't exist]
    SELECT id FROM wp_bp_messages_notices WHERE is_active = 1

    I have been trying to find a solution for this online, for the last 4+ hours… and I have gotten nowhere… So, I am humbly asking for help here, on how to recreate these tables – WITHOUT DELETING AND RECREATING MY ENTIRE SITE. I have nearly 100 hours into this site so far, and I am NOT starting over. Starting over is NOT an option, so please save everyone’s time and skip suggesting this.

    I have reviewed all of these links, and followed all of their respective directions, when applicable:

    Deleting BuddyPress


    https://buddypress.org/support/topic/reinstall-should-i-delete-old-tables-from-db/

    repair buddypress database


    and, many many many many more links, that I am not going to go back and try to find…

    Any help with this would be great – I’d really like to use BP again… I have seen a number of other people online with this issue, so I know I am not the only one. There has to be some elegant solution to re-create the required SQL tables for the plugin, right?

    I have tried running this, after I reinstalled BP the 4th time (with my TDL inserted, ofc):
    https://xxxxxx.com/wp-content/plugins/buddypress/bp-core/bp-core-update.php?f=bp_update_to_2_7_4
    But, it didn’t seem to do anything…

    Ubuntu 16.04.1
    Apache 2.4.18
    PHP 7.0.13
    WP 4.7.2
    BP 2.7.4
    no other BP extension/plugins have been installed since the 1st time removing BP

    I am more than happy to provide any requested log files!

    Thank you a TON in advance!! I look forward to getting this working again.

Viewing 25 results - 126 through 150 (of 1,245 total)
Skip to toolbar