I have begun using Presswell Art Directed images in my theme, however, I am getting inconsistent results with attempting to display them. I have added image sizes like so:
pwad_add_image_size( array(
'name' => 'Art-directed post thumbnail',
'key' => 'pwad-post-thumbnail',
'width' => '1920',
'height' => '1920',
'thumbnails' => array(
array(
'name' => 'Banner',
'key' => 'pwad-banner',
'width' => '1920',
'height' => '700',
),
array(
'name' => 'Hero',
'key' => 'pwad-hero',
'width' => '1920',
'height' => '846',
),
array(
'name' => 'Index thumbnail',
'key' => 'pwad-index-thumb',
'width' => '640',
'height' => '480',
),
),
) );
I have additional post images using ACF which are set to display via Image ID. In one instance, this works:
echo pwad_get_image( $image, 'pwad-post-thumbnail-pwad-banner' );
This works with the overload pattern only, not with the standard pattern.
On a different page, I receive the following error:
Warning: Trying to access array offset on value of type bool in?/Users/<my user>/Sites/<my site name>/app/public/wp-content/plugins/presswell-art-direction/presswell-art-direction.php?on line?557
var_dump on my $image reveals a string with a length of 0:
string(0) “”
That’s a clear indicator that the image is considered nonexistent, but I can’t figure out why PWAD isn’t producing a thumbnail of this image. Any idea as to why that might be?
]]>WP 6.2
I’ve deactivated and reactivated, pretty sure this plugin is the culprit.
The plugin still works and the site seems fine too, I just have that Site Health warning while the plugin is enabled.
I see the error was in a previous version, somehow it has crept back in?
]]>Hi,
is this the intended behaviour, that pwad_get_image returns no image, if the requested size is larger than the original size of the image?
For example I have the following size:
pwad_add_image_size( array(
'name' => 'Square',
'key' => 'square',
'width' => '1200',
'height' => '1200',
'crop' => true,
'thumbnails' => array(
array(
'name' => 'Medium',
'key' => 'medium',
'width' => '800',
'height' => '800',
),
array(
'name' => 'Small',
'key' => 'small',
'width' => '400',
'height' => '400',
),
),
) );
My image is 1024*860px.
If I request the image with $square_large = pwad_get_image( $img_ID, 'square' );
, I get nothing back.
$square_large = pwad_get_image( $img_ID, 'square-medium' );
returns the cropped image in medium size.
Is there a way to always get an image back in largest possible size (in this example 860*860) or at least in the next possible size based on the thumbnails (800*800)?
Thanks!
]]>When I select a focal point, the existing image sizes are deleted, but never recreated with the new focal point.
]]>Hello,
since I have activated your plugin the Health status show a ciritcal issue because of an opened and not closed session_start() function call.
Would be great you could fix this. Thanks!
Regards
Juergen
Really like this plugin however I get a “The following plugins may conflict” error when I activate it with the Regenerate Thumbnails plugin also active.
I assume it has something to do with the dynamic image generation?
Does this plugin negate the need for Regenerate Thumbnails?
Or is it possible to get these two to play nice?
On a seemingly unrelated note I also find many of my images in the media library disappear once the plugin is activated. I figure I may need to do something in the settings but I’m a little nervous about trying this due to the above issue
]]>There seems to be Character encoding issues with international letters like the danish ???.
Whenever the smart caching tries to handle an image with special characters in it, it fails.
An example could be the following image: https://squazz.dk/wp-content/uploads/2019/07/Sparegris-p%C3%A5-en-bunke-penge.jpg
This image could not be handled by the smart cache, so I ended up generating thumbnails for all images with another plugin. Resulting in the focal point set by this plugin, not being used.
First, thanks for this great plugin!
I was looking for something like this for ages!
I don’t know is this is a new setting or one that I missed before, but what’s the meaning of the “Enable smart caching” option?
Thanks!
]]>