Hello,
I would like to ask you if it is possible to make auto youtube/vimeo thumbnails downloader to download images to any specific folder?
Currently the situation is that when I create video post type with e.g. youtube link, the theme downloads video thumbnail image, creates a lot of files with different sizes and stacks them in the month folder (I have media path like /2014/10/21/POSTID). The problem is that I have a lot of video posts and thus the theme creates HUGE amount of files in the months folder.
Is there a way to avoid this?
I don’t think you can make the thumb function write to different folder since it hooks into the WP image builder and uses that /path/to/files … you might be able to edit the plugin to only build specific sizes vs pulling that from the theme functions, dunno. You can also trim the sizes built by theme by editing the functions.php file (search forum for how to on that). So, instead of 3 sizes from WP and 7 sizes from theme, you can usually line up the WP media small/medium/large to the 3 sizes you use most, then keep couple of sizes from functions; but delete the sizes from modules you don’t use.
Not sure that helps, but food for thought anyway.
Hi,
Thanks Christopher!
@skotina
You can change the uploads folder by editing the wp-config.php file and add this line define('UPLOADS', 'wp-content/myimages'); like this: http://screencast.com/t/LYPM7Uqova6q
This will create a new folder for your uploads: http://screencast.com/t/eE8bWdB13bL
Note that you will also have to add again the images for existing post and regenerate thumbnails: https://forum.tagdiv.com/how-to-fix-strange-thumbnails/
If you just worry for the amount of thumbs that are created when uploading an image then you should consider as Christopher pointed to remove from functions.php file the thumb sizes you don’t use and reduce the number of thumbs being created when uploading an image: http://screencast.com/t/uP620qI8C
Hope this helps!
Thanks
Thanks, but if the plugin hooks to WP upload, can I force youtube thumbnails to be uploaded to the already specified folders? Because WP itself uploads files correctly.
E.g.:
WP media manager upload – http://www.mysite.com/wp-uploads/2014/10/postname/001.jpg
And I want youtube thumbs to be placed in to the same folder – http://www.mysite.com/wp-uploads/2014/10/postname/maxres…
My point is, that I need all media files to be uploaded into corresponding month/postname folder.
TIP: most of the function files not found in functions.php are in the /Newspaper/includes/ folder and many are in /Newspaper/includes/wp_booster/
so if you look in there, an obvious choice might be “td_video_support.php”
and if you look at that file, you’ll see this at the top
/* ----------------------------------------------------------------------------
tagDiv video support
- downloads the video thumbnail and puts it asa a featured image to the post
*/
Pretty good idea to “explore” the folders for the theme you’ve installed to see what files are there, as that is often a way to see what does what or find things on your own vs waiting for somebody else to locate it or for tech support to answer on a weekend. 🙂
Generally all featured images are put into your media folder based on the settings you have for WordPress, such as /uploads/12/13/2014/
In my case I found it was better to simply have all images load into a folder called /images/ without the date/time stamp stuff as you end up with a needless number of sub-directories.
Hope that helped.
-
This reply was modified 11 years by
simchris.