|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:
If it’s within wp-content, you could use the content_image method instead:
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.
MasterPress 1.3.8 is now available
16th December 2022
MasterPress 1.3.8 is a bugfix release. Fixed a bug where MB, KB, and GB were being converted to bytes incorrectly via WOOF file functions. Fixed a bug where transparent images were losing their transparency on resize.