-
Notifications
You must be signed in to change notification settings - Fork 26
Bedrock Compatibility #23
Comments
Hi @chicharitomagnetico it should work with any WordPress architecture, as long as the images are available locally to the plugin. Does it not work now? If not, what exactly is the problem? |
It seems that the plugin it's not creating the cropped image. /Users/alderaan/playus/wordpress_dev/playus_site_16/playus-wp/bedrock/web/app/uploads/playus-images When I check the images folder, it's empty. This doesn't happen with normal architecture. |
I think you might have to change the directory where this plugin stores and looks for images. You might need to use the /**
* Update Fly Images directory.
*
* @param string $path
* @return string
*/
function my_fly_dir_path( $path = '' ) {
return '/Users/alderaan/playus/wordpress_dev/playus_site_16/playus-wp/bedrock/web/app/uploads/fly-images';
}
add_filter( 'fly_dir_path', 'my_fly_dir_path' ); More info here: https://github.com/junaidbhura/fly-dynamic-image-resizer/wiki/Actions-&-Filters |
I moved the folder using: /*-------------------------------------------------------------------------------------*/
/* Change Fly Images Path
/*-------------------------------------------------------------------------------------*/
function change_fly_path( $path = '' ) {
require_once(ABSPATH . 'wp-admin/includes/file.php');
$absolute = get_home_path();
return $absolute.'app/uploads/playus-images';
}
add_filter( 'fly_dir_path', 'change_fly_path' );
////////////////////////////// The plugin created the folder but it's not creating the cropped images. |
@chicharitomagnetico I've fixed this on another branch: https://github.com/junaidbhura/fly-dynamic-image-resizer/tree/fly-dir-path Could you please test and let me know if it's all okay? If it is, I'll merge it in and release a new version of this plugin. |
Hola @junaidbhura I tested the branch with the same results, still not working. |
Hey @chicharitomagnetico I just checked with Bedrock, and it does seem to work okay. Can you try removing the filter |
Sorry, I finished the project with another solution, but now that I have a little time I want to make it work. |
Would it be possible to make the plugin work with Bedrock?
https://roots.io/bedrock/docs/bedrock-compatibility/
The text was updated successfully, but these errors were encountered: