Sure, here is an example WordPress plugin that allows you to add images to your posts using a shortcode:
Create a new PHP file named "image-shortcode.php".
Copy and paste the following code into the file:
Save the file and upload it to the "wp-content/plugins" directory of your WordPress installation.
Activate the plugin from the WordPress admin dashboard.
To add an image to a post, use the following shortcode format: [image src="your-image-url" alt="your-image-alt-text"].
Replace "your-image-url" with the URL of your image, and "your-image-alt-text" with the alt text for the image.
Save and publish your post, and the image should appear where the shortcode was placed.