Reply To: How to use "WOOF_Image :: save_image"

Author Replies
traversal # Posted on October 2, 2015 at 12:14 pm

Hi so just to clarify, you’ve already put an image URL into another field, but you want to use the image from that path as a thumbnail? I assume the other field is not an image type?

WOOF_Image::save_image is not really for this purpose, as this requires an image handle from the standard PHP way of loading in an image.

Where is your image stored? If it’s inside your theme folder, you could use this method to get an image relative to the top of the theme path:

https://www.masterpressplugin.com/docs/developer/methods/woof-theme-image

If it’s within wp-content, you could use the content_image method instead:

https://www.masterpressplugin.com/docs/developer/methods/woof-content-image

both of these will give you a WOOF_Image class which can then be used just like any image field, so you can call resize etc on the object.

Latest From the Blog

Ability to deactivate licence domains within MasterPress account management

25th October 2024

We have just rolled out an account management feature which allows licence holders to have better control over the domains that use their licence key. From the MasterPress Account Management page, the list of Active Sites that use your licence now includes a function that allows you to remove a domain from your licence. Simply… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM