Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-05-08 23:46:25
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
adi_image_tab - Enhanced image tab
Summary
adi_image_tab provides enhancements to the standard TXP Image Edit tab as well as some new tags.
See the help supplied with the plugin, or have a look online. You can download the latest version from here.
Additional image information displayed
- image publish date, author
- image file information – dimensions, file size, aspect ratio
- thumbnail file information – dimensions & file size
Navigation
Dropdown menus are provided to help speed up access to images:
- Recent images – contains a list of the recently updated images
- Images – is a link to the Images list tab plus a menu containing images surrounding the current image in the list
- Previous/Next links – for navigating through the image list
Tab behaviour
Tab behaviour is changed so that:
- the user is taken to the Image Edit tab immediately after uploading a new image
- when saving, the user stays in the Image Edit tab rather than being returned to the Images List tab
Functionality
Additional functionality in the Image Edit tab:
- image delete button
- option to populate alternate text from image name
- option to populate caption from alternate text
- ability to modify the image’s published date
- ability to edit image’s author
- image resize functionality
- checks writability of image & thumbnail files
Keywords
The plugin provides a new field for keywords. Enter a comma-separated list of keywords which can be utilised by new tags adi_image_keywords & adi_image_if_keywords.
Tags
To go with the new keywords field some extra tags are provided, as well as some tags to display additional image information.
- adi_image_keywords – displays the list of image keywords
- adi_image_if_keywords – conditional tag to detect whether image has keywords associated
- adi_image_download_link – generates a link for directly downloading the image
- adi_image_filesize – displays the file size of the original image (or the image linked in the database if not resized)
- adi_image_imagesize – displays the dimensions of the original or the database linked image
Image resize
The plugin enables you to resize images (dimensions and/or file size) during the upload process. This saves having to adjust image dimensions or file size locally on your computer before uploading. Switch on image resizing in plugin options.
Usage
After installing & activating the plugin, select the image you wish to edit from the Images tab as normal.
Screen shots
Enhancements to standard image edit tab:
Recently updated image dropdown menu:
Resizing an image:
Textpack
There is a mechanism to install a Textpack in the adi_image_tab options page under the Plugins tab.
Corrections or additional language translations are most welcome and can be submitted here.
Currently the Textpack contains:
- Swedish (thanks Mats)
- German (thanks David & “Someone”)
- French (thanks Pat64)
- Polish (thanks BKawalec)
Requirements
Textpattern 4.7 or later.
Bug & Limitations
- the number of images in the dropdown menus is currently fixed at 10
- only images with thumbnails will be shown as images in dropdown menus, others will be listed with their alternate text or filenames
- incompatible with ebl_image_edit
- 0.4.2
- fix: resize set save error
- 0.4.1
- fix: PHP 8 errors (thanks GugUser)
- 0.4
- TXP 4.7+ only
- 0.3
- NOT OFFICIALLY RELEASED
- TXP 4.6
- enhancement: image resize
- enhancement: keywords
- enhancement: copy image name to alt text
- enhancement: copy functions more user friendly
- new tags: adi_image_keywords, adi_image_if_keywords, adi_image_download_link, adi_image_filesize, adi_image_imagesize
- 0.2
- TXP 4.5-ified
- code tidy up
- fix: styling only generated for event=image tabs (thanks uli)
- enhancement: image delete button
- enhancement: thumbnail info
- changed: recent image list now stored as “user” pref
- 0.1.1
- errors after image deleted (thanks Uli)
- spurious timestamp error message when save image directly after upload
- timestamp fields now visible after uploading image
- 0.1
- initial release
Feedback
Comments are most welcome.
Spread the love
If you find this plugin useful and would like a warm and fuzzy feeling to go with it, please consider donating to the Textpattern development team.
Last edited by gomedia (2021-06-25 03:44:50)
Offline
#2 2011-05-09 00:44:52
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: adi_image_tab - Enhanced image tab
D’Adi, promise you’ll never leave Mom, will you!?
I’ll go play fo sum ours now.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: adi_image_tab - Enhanced image tab
Hi Adi,
Very handy. The only thing I noticed when enabling this was that I lost all EBL Image Edit functionality.
Regards
Martin
Offline
#4 2011-05-09 05:48:40
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_image_tab - Enhanced image tab
smdnetau wrote:
The only thing I noticed when enabling this was that I lost all EBL Image Edit functionality.
I’ll look into it!
Offline
#5 2011-05-10 05:57:42
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_image_tab - Enhanced image tab
smdnetau wrote:
The only thing I noticed when enabling this was that I lost all EBL Image Edit functionality.
Unfortunately, it looks like adi_image_tab & ebl_image_edit will be mutually exclusive – at the moment I can’t think of a way around it.
Offline
#6 2011-05-22 14:38:08
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: adi_image_tab - Enhanced image tab
Like I guessed: great improvements for the image tab.
It’s just the clients. Clients who probably delete images (or articles with images?). Then they get errors like these:
Notice: Undefined variable: thumbnail in /is/htdocs/wp10557963_B5EFTVJK12/www/textpattern/lib/txplib_misc.php(638) : eval()'d code on line 382
Notice: Undefined variable: alt in /is/htdocs/wp10557963_B5EFTVJK12/www/textpattern/lib/txplib_misc.php(638) : eval()'d code on line 398
Is there something you can do about it, Adi?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#7 2011-05-22 21:38:54
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_image_tab - Enhanced image tab
uli wrote:
It’s just the clients. Clients who probably delete images (or articles with images?). Then they get errors like these:
I got 3 errors when I tried it!
Is there something you can do about it, Adi?
Most definitely …
Offline
#8 2011-05-22 23:40:48
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_image_tab - Enhanced image tab
Version 0.1.1 available for download.
Fixes:
- errors after image deleted (thanks Uli)
- spurious timestamp error message when save image directly after upload
- timestamp fields now visible after uploading image
Offline
#9 2011-05-23 18:48:58
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: adi_image_tab - Enhanced image tab
Thanks for the fix, Adi.
And another one for the adi_image_tab_menu_non_link class!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: adi_image_tab - Enhanced image tab
Thanks Adi, terrific plugin, even just for showing the Image ID on the edit page. Is there a plugin that will do the same for files?
Offline
#11 2011-08-11 23:31:22
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_image_tab - Enhanced image tab
maruchan wrote:
Thanks Adi, terrific plugin, even just for showing the Image ID on the edit page.
Yes, it’s the simple things that smooth the path of life for me too! Glad you find it useful.
Is there a plugin that will do the same for files?
Maybe one day …
Offline
#12 2012-05-19 16:06:27
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: adi_image_tab - Enhanced image tab
I was thrown onto the image tab again by the new wonderful abl_droploader and so saw that in Hive #adi_image_tab_menu ul
needed a z-index:1
in order to be displayed on top of the forms for replacing thumb and image, below the main image.
Adi, do you see a use for this plugin to display information about which articles an image is used in (optimally also whether it is used anywhere at all)? Or is this totally beyond the scope of this plugin? The problem I see is that this feature is most useful when displayed in the images list panel where adi_image_tab doesn’t do its work so far.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline