WordPress plugin to integrate AstroBin images into WordPress using the Media Library in the Gutenberg editor. This plugin uses the AstroBin API but is not endorsed or certified by AstroBin.
- Integration with AstroBin API for searching and browsing images
- Secure storage of AstroBin API credentials
- Media Library integration within Gutenberg editor
- Multiple browsing options:
- Your own AstroBin pictures
- Public pictures (search by title)
- Users' galleries (search by username)
- Image Hash (ID)
- Image of the Day (browse current and past featured images)
- Download or clone this repository to your WordPress plugins directory
- Activate the plugin through the WordPress admin interface
- Navigate to Settings > AstroBin to configure your API credentials
To use this plugin, you need to have an AstroBin account and create API credentials:
- Go to AstroBin
- Register or log in to your account
- Request an API Key from the API Key request form
- Copy the API Key and API Secret to the plugin settings
This plugin connects to the AstroBin API to retrieve image data. This API will be fetch via the WordPress REST API and it will send the following information:
- your credentials (api-key and api-secret)
- the url of your website
- our requested terms
This is required to fetch image files and related information such as title, author, and license. Please note that "All rights reserved" is the most commonly used license. This means you must obtain the author's permission before publishing any of their images on your website.
This service is provided by the AstroBin API. For more details, please refer to their terms of use, privacy policy.
- Configure your AstroBin credentials in Settings > AstroBin
- Edit a post or page using the Gutenberg editor
- Open the Media Library and look for the AstroBin categories
- Choose one of the browse options:
- "My pictures" to browse your own images
- "Images by username"
- "Images by subject"
- "Images by hash (id)"
- "Image of the day"
- Select an image to insert it into your post
- You will also find the image in the Media Library complete with title, author attribution, copyright information, and links to both the original image and the author's profile.
The Image of the Day feature allows you to browse through AstroBin's featured images:
- The first page shows the most recent Images of the Day
- Navigate to other pages to see older featured images
- Each image displays its featured date in the caption
This plugin uses @wordpress/scripts for development. To set up the development environment:
# Install dependencies
npm install
# Start development mode
npm run start
# Build for production
npm run build
This plugin uses the AstroBin REST API using this documentation.
The plugin specifically uses these endpoints:
image/
- For browsing and searching imagesimageoftheday/
- For accessing Image of the Day features
This plugin is licensed under the GNU GPL 2.0 licence This plugin uses the AstroBin API but is not endorsed or certified by AstroBin.