• Resolved Dan-BTP

    (@dan-btp)


    I would like to generate JPEG files with a VB.NET program and save them in a subfolder of my blog (such as wp-content\images). Is this possible?

    It seems that when I have created the subfolder (in Windows) and then put graphics files in it, they weren’t recognized by WordPress. The only way I could get WordPress to recognize graphics files was to add them through the media library add button.

    I’m running on a Windows 7 system.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • bemdesign

    (@bemdesign)

    If you want WordPress to be recognize these images, yes, you would have to create a record of it in the WordPress database. And the easiest way to do that is through the Media library functionality built in to WordPress.

    I suppose you could create a PHP script to execute every time you generate an image in a specified location that would create these records programmatically to the database. But that’s way beyond my domain of expertise…

    Thread Starter Dan-BTP

    (@dan-btp)

    Thank you for your helpful, prompt response! I will look into how to script adding it to the database as though it were uploaded through the user interface.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding graphics files to media library’ is closed to new replies.