I'm writing a php script to watermark an exiting image in wordpress.
But I get "HTTP wrapper does not support writeable connections in Wp-Content"
Since it has 0755 permission mode.
imagejpeg($img_after_watermark, '<a href="http://example.com/wp-content/uploads/2016/new_img.jpg" rel="nofollow">http://example.com/wp-content/uploads/2016/new_img.jpg</a>');
Is there a way i can save this image to my wordpress upload directory without changing the wp-content's permission mode?
But I get "HTTP wrapper does not support writeable connections in Wp-Content"
Since it has 0755 permission mode.
imagejpeg($img_after_watermark, '<a href="http://example.com/wp-content/uploads/2016/new_img.jpg" rel="nofollow">http://example.com/wp-content/uploads/2016/new_img.jpg</a>');
Is there a way i can save this image to my wordpress upload directory without changing the wp-content's permission mode?