joppuyo
Forum Replies Created
-
Forum: Reviews
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Great pluginHey,
Thank you for your kind words and big thanks for your translation. Unfortunately the translation will not go live until it has been approved. Do you think it would be ok for me add you as a Danish translation editor in this project?
This means you will be able to approve the translations so they will go live immediately.
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Big thumbnailYou can control the image size in ACF settings for the field, the setting is “Preview Size”. I suggest you to use medium of thumbnail setting for a smaller image.
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Failed to crop imageHey,
Time it takes to crop an image depends on how big your image is and how powerful the server.
A low-end server will quickly process images if they are small enough but may have problems with larger images.
A powerful server will process images quickly even if they are large in size.
If image takes more than 30 seconds to process, the server will often timeout and the cropping will fail. In this case I suggest either to used a smaller image or upgrade to a more powerful server.
In some cases it might be possible to use a php.ini file to modify the server settings, in particular increase the max_execution_time setting.
Hey, it took quite a bit longer thank I promised but I have included beta support for deleting unused images in the latest version of the plugin.
I hope you are able to test it out.
Hey,
This plugin uses the WordPress quality setting for images which is by standard is 82%. If your original image has been saved with lower quality, let’s say 50%, this may mean that the cropped image is larger than the original.
I recommend to use an image optimization addon such as reSmush.it to further optimize your images.
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] serious plugin issueHey, apologies for pushing a broken version of the plugin into the www.ads-software.com repository.
I changed to new deployment process using GitHub actions but due to a bug, some files were not correctly deployed to www.ads-software.com plugin repository.
If you install the latest version (v3.1.8) this issue has been fixed.
Thanks and apologies for any issues this might have caused.
Hey, this is a feature that has been requested many times and I am in progress of implementing this functionality in the plugin.
Since it needs some additional testing so everything works smoothly, I’m planning to release a new version of the plugin that has image deletion as a beta feature.
I’ll probably release this new version next week.
Thanks!
Hey, I’m having this same problem. Until a fix arrives, I’ve fixed it with the following code:
add_action('admin_head', function () { $current_screen = get_current_screen(); if ($current_screen && $current_screen->id === 'dashboard') { echo '<style>.SimpleHistoryGui { float: unset; }</style>'; } });
Hey, apologies for the late answer.
I have been using this plugin successfully with a repeater. Since this is an extended version of the standard image field, you could test if you can get the value with the standard image field successfully.
If that works, this plugin should work the same. If not, there might be some issue with the plugin code.
So, could you try using the regular image field first?
Thanks.
Hey,
Unfortunately this plugin does not integrate with featured image. You could use code like this to set featured image on post save:
add_action('acf/save_post', function ($post_id) { $value = get_field('my_crop_image_field', $post_id); if ($value) { if (!is_numeric($value)) { $value = $value['ID']; } update_post_meta($post_id, '_thumbnail_id', $value); } else { delete_post_meta($post_id, '_thumbnail_id'); } }, 11);
Please note that this only works if return value is post id or post object.
Other way would be to change your theme to use the ACF image field instead of a featured image.
If you just need to crop images, WordPress has built-in tools for that. https://www.wpbeginner.com/beginners-guide/how-to-crop-rotate-scale-and-flip-images-in-wordpress/
- This reply was modified 5 years, 6 months ago by joppuyo.
- This reply was modified 5 years, 6 months ago by joppuyo.
- This reply was modified 5 years, 6 months ago by joppuyo.
- This reply was modified 5 years, 6 months ago by joppuyo.
- This reply was modified 5 years, 6 months ago by joppuyo.
- This reply was modified 5 years, 6 months ago by joppuyo.
Hey, glad you got it to work. Right now I’m pretty happy with the cropper design and I don’t have any plans to change it any time soon. For the reference, this is how it should look like: https://raw.githubusercontent.com/joppuyo/acf-image-aspect-ratio-crop/master/assets/images/screenshot-1.jpg
If there is something off, please upload a screenshot so I can see if the issue can be fixed.
About the black border, would it be possible for you to upload the image that is causing problems with black borders? I can then try to see what is causing the problem if I can replicate the problem in my local environment.
For rotation, you can use the built-in WordPress editor: https://www.wpbeginner.com/beginners-guide/how-to-crop-rotate-scale-and-flip-images-in-wordpress/ . I’m not sure if it’s a good idea to add this straight to the cropper, as I don’t want to overload it with different options.
Hey.
I just released a new version of the plugin, v2.2.0 which contains a backwards compatibility that allows you to migrate data from ACF Image Crop to ACF Image Aspect Ratio Crop.
Could you download the latest version and test that it works for you?
Thanks!
Hey!
Unfortunately this feature is not something that be easily done. As far as I know, WP image editor class only supports cropping within an image and not outside it.
Hey,
Glad you got it working and thanks for the info, very useful if someone else wants to integrate this plugin with Beaver Builder.
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Reuse Cropped imagesHey, this feature is intentionally not included since I’ve found that it’s easier for clients to deal with one source image which you can crop to create different variants.
If cropped images are included in media gallery, since WP crops media previews to square, there would be tons of duplicate images and no easy way to differentiate between the different crops.
I’m looking into incorporating a feature in a future version of this plugin that allows you to re-use different crops of the same source image in the cropping interface. This would eliminate the need for duplicate images if the same crop already exists