I'm sure this is simple, but I'm not able to figure out why this is not working.
If I use the first imagegif function, it works perfectly. However, when I comment that one out and try to use the second one, it fails. No error, it just does not write the image file.
imagegif($img, "../wp-content/themes/mytheme/styles/test/sidebar.gif");
imagegif($img, get_bloginfo('template_directory')."/styles/test/sidebar.gif");
This function is located in my functions.php file located in my theme directory, which is why in the hardcoded imagegif function, I'm moving the directory up one level.
Perhaps the imagegif function needs a relative path and not absolute? If so, how to convert the get_bloginfo to a relative path?