Feature RTC PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar AdarshSantoria
AdarshSantoria
23 Mar 2025

Pull Request for Issue #45196

Summary of Changes

This pull request enhances the mod_random_image module by allowing the use of multiple image file extensions in the Image Type parameter. Previously, the module only supported a single extension like jpg. With this change, users can input comma-separated values (e.g., jpg,jpeg,png) to support multiple file types simultaneously.

Testing Instructions

  1. Prepare a folder with images of various formats such as .jpg, .jpeg, .png, and .webp.
  2. Create or edit a Random Image module and set the image folder to the one prepared above.
  3. In the Image Type field, enter values like jpg,jpeg,png, or even uppercase like PNG.
  4. Save the module and check the frontend display.
  5. Images with all the listed extensions should now appear randomly.
    Screenshot (13)
    Screenshot (14)

Actual result BEFORE applying this Pull Request

Only images with the exact extension specified (e.g., only jpg) were displayed.
Entering multiple extensions resulted in "No images" being shown.
Screenshot (15)

Expected result AFTER applying this Pull Request

The module correctly loads and displays images of any extension listed in the comma-separated input (e.g., jpg,jpeg,png).
Screenshot (12)

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar AdarshSantoria AdarshSantoria - open - 23 Mar 2025
avatar AdarshSantoria AdarshSantoria - change - 23 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Mar 2025
Category Modules Front End
avatar AdarshSantoria AdarshSantoria - change - 23 Mar 2025
Labels Added: PR-5.3-dev
avatar AdarshSantoria
AdarshSantoria - comment - 25 Mar 2025

Hi @seaoffate-net, Can you please test it.

avatar bembelimen
bembelimen - comment - 25 Mar 2025

I like the idea behind it. As Joomla! 5.3 is in feature freeze mode, I move it to 5.4, so it can be tested there.

avatar bembelimen bembelimen - change - 25 Mar 2025
Title
[5.3] Enable support for multiple image extensions in Random Image module
[5.4] Enable support for multiple image extensions in Random Image module
avatar bembelimen bembelimen - edited - 25 Mar 2025
avatar bembelimen bembelimen - change - 25 Mar 2025
Labels Added: Feature PR-5.4-dev
avatar brianteeman
brianteeman - comment - 25 Mar 2025

I like the idea behind it. As Joomla! 5.3 is in feature freeze mode, I move it to 5.4, so it can be tested there.

shouldnt that be 6.0? When @HLeithner did the big rebase the other week all unmerged features were moved to 6

avatar HLeithner HLeithner - change - 26 Mar 2025
Title
[5.4] Enable support for multiple image extensions in Random Image module
[6.0] Enable support for multiple image extensions in Random Image module
avatar HLeithner HLeithner - edited - 26 Mar 2025
avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2025
Category Modules Front End Administration com_templates com_users JavaScript Repository NPM Change External Library Composer Change Installation Libraries Modules Front End Plugins Unit Tests
avatar HLeithner
HLeithner - comment - 26 Mar 2025

Rebased on 6.0

avatar HLeithner HLeithner - change - 26 Mar 2025
Labels Added: Unit/System Tests Composer Dependency Changed NPM Resource Changed PR-6.0-dev
Removed: PR-5.3-dev
avatar AdarshSantoria
AdarshSantoria - comment - 7 Apr 2025

Hi @seaoffate-net, Can you please test it.

avatar AdarshSantoria
AdarshSantoria - comment - 18 Apr 2025

I think this is a useful enhancement for Joomla and would improve flexibility for module users.
Would appreciate it if someone could review or test when possible. Thanks! 🙏

avatar seaoffate-net
seaoffate-net - comment - 21 Apr 2025

Hi
I have tried the update just now installed v5.30 i removed all but one of
the jpegs in the dir and uploaded a png to the folder

  1. images
    https://www.seaoffate.net/administrator/index.php?option=com_media&path=local-images:/myimages/walking#
  2. myimages
    https://www.seaoffate.net/administrator/index.php?option=com_media&path=local-images:/myimages/walking#
  3. walking
    https://www.seaoffate.net/administrator/index.php?option=com_media&path=local-images:/myimages/walking#

so now i have just two images for the random picture to choose
from usedCoinSeaoffate512.png
and Dwarf_Walking-In_Woods_with_Dryads-1024.jpeg. if i refresh the page it
still only shows the jpeg. if i delete the jpeg it will not show the png.
ihave tried a few different .png files but they will not show. i have
deleted the .png and renamed a jpeg to jpg and on it's own it will not
display and not with others. i renamed the .jpg to jpeg and then it display.

This behaviour is not really a problem to me now that I know what it does
but I think it is not what is intended.so I alerted devs. please for my
part dont take any trouble to fix this as it is not a problem for me.

regards Nigel

On Tue, Mar 25, 2025 at 4:55 PM Adarsh Santoria @.***>
wrote:

Hi @seaoffate-net https://github.com/seaoffate-net, Can you please test
it.


Reply to this email directly, view it on GitHub
#45200 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BQYWBDCUFEMBFBIXVQBRIML2WGDA3AVCNFSM6AAAAABZTOS5QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJRHEZTCMBSHA
.
You are receiving this because you were mentioned.Message ID:
@.***>
[image: AdarshSantoria]AdarshSantoria left a comment
(#45200)
#45200 (comment)

Hi @seaoffate-net https://github.com/seaoffate-net, Can you please test
it.


Reply to this email directly, view it on GitHub
#45200 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BQYWBDCUFEMBFBIXVQBRIML2WGDA3AVCNFSM6AAAAABZTOS5QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJRHEZTCMBSHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

avatar AdarshSantoria
AdarshSantoria - comment - 21 Apr 2025

Hi @seaoffate-net, is the issue related to my changes? If yes, can you please attach images directly as your link requires login. Moreover, I think this is a good feature enhancement to add.

avatar ceford ceford - test_item - 30 May 2025 - Tested successfully
avatar ceford
ceford - comment - 30 May 2025

I have tested this item ✅ successfully on 170f8ee

A thought: would this work with SVG?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45200.

avatar richard67 richard67 - change - 7 Jun 2025
Labels Removed: PR-5.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jun 2025
Category Modules Front End Administration com_templates com_users JavaScript Repository NPM Change External Library Composer Change Installation Libraries Plugins Unit Tests Modules Front End
avatar richard67
richard67 - comment - 7 Jun 2025

@ceford Could you repeat your test for this PR? When you had tested it, it had conflicts from a previous rebase. I just want to be sure it still works. It has to be tested on 6.0, e.g. a 6.0 nightly or with the patched package created for this PR by Drone. Thanks in advance.

avatar ceford ceford - test_item - 7 Jun 2025 - Tested successfully
avatar ceford
ceford - comment - 7 Jun 2025

I have tested this item ✅ successfully on e799d18

Confirmed using a new clone with Multilingual and Sample data installed. Random images included jpg, webp, png and bmp.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45200.

avatar exlemor exlemor - test_item - 7 Jun 2025 - Tested successfully
avatar exlemor
exlemor - comment - 7 Jun 2025

I have tested this item ✅ successfully on e799d18

I have successfully tested this PR. Thanks @AdarshSantoria!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45200.

avatar richard67 richard67 - change - 7 Jun 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 7 Jun 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45200.

avatar richard67 richard67 - change - 7 Jun 2025
Labels Added: RTC
Removed: Unit/System Tests Composer Dependency Changed NPM Resource Changed
avatar Bodge-IT Bodge-IT - change - 12 Jun 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-06-12 12:38:42
Closed_By Bodge-IT
avatar Bodge-IT Bodge-IT - close - 12 Jun 2025
avatar Bodge-IT Bodge-IT - merge - 12 Jun 2025
avatar Bodge-IT
Bodge-IT - comment - 12 Jun 2025

Thanks for the change @AdarshSantoria and thanks to @exlemor, @ceford for persistent testing.

Add a Comment

Login with GitHub to post a comment