joppuyo
Forum Replies Created
-
Hey, I don’t plan adding a feature like this to the plug-in, but I can provide some lines of custom code that allow you to accomplish this task.
Would it be enough to provide a list of original images and provide a link to each attachment so you can delete it? Or would there be a need for some kind of time-based condition? Eg. only show images that are older than 30 days?
Thanks!
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Crop Featured ImageSince this issue is solved, I’m going to close this thread.
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Crop Featured ImageHey,
my_crop_image_field
should be the name of the field that you have specified when creating the field.The code should go to theme
functions.php
or a custom plugin.Using this plugin assumes the user has certain level of coding experience. If using custom code is too difficult, I encourage hiring someone with coding experience to create a custom solution that works in the specific case.
Hey, thank you for reporting this issue. If the field doesn’t work on the user page, it’s most probably a bug. I will check if I can reproduce this issue.
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Crop Featured ImageHey,
This is not a feature built into the plugin but you can accomplish this with the following code:
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); // Check if field is here AND empty } elseif($value === false) { delete_post_meta($post_id, '_thumbnail_id'); } }, 11);
Just make sure you update
my_crop_image_field
so it’s the actual name of the ACF crop image field.The code is originally from this thread.
Entering the size 1600×1400 and 8×7 will result in exactly the same behaviour when cropping the image. I doesn’t matter which one you use.
I hope this clears up things for you.
- This reply was modified 3 years ago by joppuyo.
Forum: Plugins
In reply to: [Disable Media Pages] Plugins don’t work for meIf you are not a developer, it is a bit difficult to try to figure out what’s causing the issue.
Unless you want to do a Zoom call where we could go through the debugging process?
But the first thing I would check that the REST API is working.
Could you check the steps mentioned on this page and see if any of them apply to you? https://redirection.me/support/problems/rest-api/
And the second thing would be checking the browser developer console for errors.
On the plugin page, if you are using Chrome, you can right click on the page and select “Inspect”. On the bottom of the screen there should be a new window with several tabs. Select the one that says “Console” and write down any messages there in this thread.
Forum: Plugins
In reply to: [Disable Media Pages] Plugins don’t work for meHey.
This means there was a problem with communicating with WordPress REST API. Could you check the following things if you can see any error messages:
– Browser developer tools console
– Browser developer tools network tab
– Server PHP error logThanks!
Hey,
Are you sure the window size is not correct? 1600/1395 equals to 1.14695340502 which is almost a square aspect ratio.
If 1600/1395 is a pixel size instead of aspect ratio, you can choose the pixel size option which will make sure the resulting image is always scaled to 1600×1395 pixels.
If I understand correctly, you will only need the full size image and any thumbnails?
That’s because WordPress generates a lot of different thumbnails and many themes add even more of them which slows down the cropping process.
If you upload an image using the form, could you tell me what other images are created in the uploads directory?
I think I can figure out some code to disable the generation of these extra thumbnails.
Hey Avery,
This plugin uses standard WordPress APIs for cropping images so it has similar performance as built-in WordPress image editing functions.
Slow performance when dealing with large images can be caused by a server that has too little CPU performance or not enough memory.
If possible, I would recommend looking into upgrading your web server to a larger one.
One additional thing that comes to mind is the big image threshold introduced in WordPress 5.3. This feature adds additional processing when cropping the image and generating a new attachment.
If you have WordPress version later than 5.3, you can use this plugin to disable this feature.
- This reply was modified 3 years, 2 months ago by joppuyo.
Forum: Reviews
In reply to: [Advanced Custom Fields: CommonMark Field] 好用Thank you for the review! I’m happy you like the plugin and you think it’s useful.
I have not tested this plugin with new WordPress and ACF versions. But I think I will need to test this plugin and make sure it works well with current versions.
If there are issues, I will release a new version.
Ok, glad you figured out the issue!
Multisite should be supported.
Could you check the browser console if you get any errors when you attempt cropping?
Thanks!
Forum: Plugins
In reply to: [Advanced Custom Fields: Image Aspect Ratio Crop Field] Failed To CropI’m glad you got this figured out. I’m closing this issue as solved.
- This reply was modified 3 years, 3 months ago by joppuyo.