Im a noobie in php but still im trying 🙂 Im making bulk video uploader/importer to database. Looking ideas how to extract thumbnails from videos on upload and add those thumbnails to mysql database for each video… :/ Im trying using ffmpeg, but i dont found the way how to implement it to my code… Answer Concerning the FFMpeg part,
Tag: thumbnails
WordPress how to get the post thumbnail inside a figure tag
I am running a query loop and want that ‘if’ the post has a featured image, it needs to be inside a <figure> tag. But the featured image’s <img> tag is appearing before the <figure> tag. What could be the reason? The problem can be better understood with this image: Answer It’s because you’re using the_post_thumbnail function which echo the
How to display category thumbnail on WooCommerce category page?
I created a WooCommerce category, added description and an image to it. There are some products in the category too. Looking at the category in frontend (/product-category/mycat/) I see category description and product images – but not a category image. I tested it with all default WP themes and with Storefront too – category image is in no theme visible.
Vimeo Thumbnails for private video in PHP
I have tried every single answer on this forum and couldn’t get a proper working code. So I am posting this again. I want to get the thumbnail of private and hidden Videos from Vimeo. I also have an access token generated which I tried to use with the solutions provided for the old questions which also didn’t work. I
How to change category thumbnail size in WooCommerce
With the following code I managed to display my featured categories title, description and thumbnail. When I uploaded the thumbnail, it was 500 * 500 in its dimensions. But when I visit the page I see the thumbnail being cropped as 150 * 150. How can I change the size of my categorythumbnails? It is my first time doing a
How to get the medium size post thumbnail url in wordpress?
What I figured out so far: I have a query like this: But the source file is just to big. Functions like the_post_thumbnail( medium ) won’t work for me because it’s not just url. It’s an url with image tag wrapper etc. So is there a way just to get the link to the medium (or small) size file? It’s
imagecreatefrompng() Makes a black background instead of transparent?
I make thumbnails using PHP and GD library but my code turn png transparency into a solid black color, Is there a solution to improve my code? this is my php thumbnail maker code: Thank you Answer After imagecreatetruecolor():
Image resize issue in PHP – gd creates ugly resized images
I am creating thumbnails of fixed height and width from my PHP script using the following function and I call this function with following parameters but the problem is the resulting image is of very poor quality, when I perform the same operation with Adobe Photo shop, it performs a good conversion.. why it is so? I am unable to