Generate Thumbnail For Any File Upload
Want to Develop a plugin which generates a thumb for any kind of media type file uploaded. In need of some direction or where to start . I tried to understand the flow by marking console.log's but with no result. Any help would be Appreciated.
Do you have a basic working plugin already setup? Is it on github so we can look at it?
Also, what kind of thumbnail do you want? Is it only for images? or binary files too?
No as of now nothing is being Set up. I want to generate thumbnails for images and videos. i am trying to tweak some existing plugin by adding a hook into it.
First i installed a plugin and adding the hooks to trigger my function but with no result.
Do i need to disbale and install the plugin again for my changes to take effect . Please Advise.
And also Thanks for the Reply. :D
@Kolluri-Suneel Usually, you just have to reload nodebb for your changes to take effect. What plugin are you adding to?
Which hooks are you using?
You should be able to do this with just 'filter:parse.post', replacing the path name to the thumbnail path, and creating the thumb if none exists.
Also, is the plugin working with no modifications?
This post is deleted!
@yariplus Hi , was able to create the thumnails for both videos and images . Thanks for the inputs. I am still modifying some other functionalities will share it once done.
@Kolluri-Suneel Glad to hear. I'll gladly help out if you have any other issues.