Skip to main content

Questions tagged [images]

The images tag is for questions related to the loading, formatting, saving,and display of images in the context of source code. This tag should also be used for assistance using various image libraries.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

J5 Images and Links 'Change Image' pop-up not displaying correctly on front-end for non-Cassiopeia template

I have a custom J5 template (not a Cassiopeia child). It has barely changed since I upgraded from its J4 version to J5. I normally do most of the editing on sites myself or my clients who use front-...
Gillian's user avatar
  • 411
0 votes
3 answers
32 views

How to version assets/images on the entire CMS?

Is there any way to force versioning of specific assets or media types (like .webp images) on all pages of the CMS? I'd imagine it'd be an extension or something that adds ?ver=xyz type of postfix to ...
Destroy666's user avatar
0 votes
0 answers
62 views

Media Resize plugin not working on article images

I have a Joomla 4 site and have enabled the 'Media Action - Resize' plugin, I have set the max width and max height in the plugin params to be 500 When I upload an image via Content > Media, it ...
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
64 views

My script doesn't work on joomla 4

I used this simple php gallery from a folder on my Joomla 3 site. Now I'm getting ready to do an update to Joomla 4 and I noticed that I have a problem with displaying images from the directory. if I ...
Midhat's user avatar
  • 109
0 votes
1 answer
36 views

Add title to image tag

Seo optimizers cannot find titles in pictures, and I can not find how to add it through the admin panels. Please help.
Назарій Кононенко's user avatar
0 votes
0 answers
36 views

Review of php script to clean up orphaned images / pdfs on joomla 4

I have written the following php script and would like some critique of the script and suggested improvements. My motivation was to reduce server backup times and save energy by not backing up ...
OnTarget's user avatar
1 vote
1 answer
293 views

Question about LayoutHelper::render('joomla.html.image') and relative paths

So Joomla 4 (ok 3 got it too) has this new way of handling images which is GREAT. But now i have to understand how it works because for a project i want to set a DIV's Background by using a field ...
Marco's user avatar
  • 685
1 vote
1 answer
298 views

Add intro or full image to a component/module Joomla 4

I'm not good in php, more a css/sass html specialist. I had an module (latest articles) and I needed to add the intro image. With Joomla 3 I did it like this: <div class="nieuwsfotos" ...
MrMarcie's user avatar
0 votes
0 answers
45 views

Path to pictures in Joomla site changed to ajax path

I created a website with Joomla and YooTheme. All of a sudden, none of the pictures show anymore. What used to be path [domainname]/images/[imagename].jpg is now [domainname]/de/component/ajax/?p=...
tobre's user avatar
  • 101
1 vote
0 answers
186 views

Problem possibly related to lazy loading of images in Joomla 4

A strange problem has appeared in the tagged items view of articles on my website https://eume.upf.org. See for example https://eume.upf.org/where-we-are/western-europe/germany, where the intro images ...
Alan Sillitoe's user avatar
1 vote
1 answer
77 views

Show images in Joomla 3.10 search results (com_search)

I want to show the intro image of articles in Joomla 3.10 search results (com_search). In previous Joomla 3 versions, I know that you could do this: Create template override: /templa tes/...
bolando's user avatar
  • 11
2 votes
1 answer
112 views

override for /layouts/joomla/content/full_image.php // alt attributes for images in Joomla 4

I need to make some adjustments to /layouts/joomla/content/full_image.php in Joomla 4.1.5. For all (full) article images without an alt attribute the alt attribute should be the title of the article. ...
mib1980's user avatar
  • 81
1 vote
0 answers
161 views

getting first image of article for open graph

I've been a PHP developer for long time, but I am new to Joomla. On a Joomla 2.5 project, I need to make open graph meta tags. As a part of open graph meta tags, I need to find first image of article. ...
shekoufeh's user avatar
  • 121
1 vote
0 answers
72 views

Delete Thumbnails Button Created as Joomla Custom Form Field Throws Me Out

I am developing a Joomla 4 Content Slider Module and it creates thumbnails in the mysite.com/cache/mymodule/ folder. I am trying to add a delete-thumbnails button. I am using a custom form field for ...
wisdom's user avatar
  • 21
0 votes
1 answer
491 views

Joomla 4 add background image to article

I cant figure out what im doing wrong. My goal is add background picture to article. I created custom.css file with simple code .main-page-picture { background-image: url('/images/main_foto_final....
Novice's user avatar
  • 101
1 vote
2 answers
405 views

Is there a way to use an SVG image in Cassiopeia

I'm using Cassiopeia and Joomla 4. I've adapted it very slightly to get to what I need but I really want to use a much smaller image size by using an SVG. Is there any way to do this? Previously you ...
Eoin's user avatar
  • 1,976
1 vote
0 answers
86 views

"404 Component not found" when trying to set an image for a category

I'm experiencing a really weird error in the backend of my site - Whenever I try to set an image for a category or article, the modal that pops up just shows me the Joomla dashboard. When I'm editing ...
D Shaw's user avatar
  • 11
2 votes
1 answer
323 views

How can I add height and width attributes to an image in a menu?

Google is complaining that there is no height and width set on the HTML properties of some images in a menu. It's worrying about cumulative layout shift. The sizing is all done in CSS, but I want to ...
Eoin's user avatar
  • 1,976
1 vote
0 answers
73 views

How do I force download an image inside Joomla component controller

I want to download the PNG image that my site creates. I want to be able to force download the image. I attempted an HTTP request to a PHP file outside of Joomla, but that did not work. How can I ...
rancper's user avatar
  • 63
1 vote
0 answers
78 views

Add an Image to K2 article pragmatically

I want to add an image to a K2 article using PHP. Is there a way to add an image when I am creating the article using PHP? Adding the title, body, and category is simple enough. All you have to do is ...
rancper's user avatar
  • 63
0 votes
1 answer
67 views

How to write Joomla functionality that writes image data directly to the browser?

I am in the process of writing Joomla functionality that will produce JPEG-images on the fly using Imagick and GD. It is supposed to be used in Joomla articles like this: <IMG src="/index.php?...
SoaringBird's user avatar
2 votes
2 answers
1k views

How to get access to image metadata from PHP?

I am in the proces of writing a Joomla extension that utilizes metadata embedded in image files in IPTC, EXIF and XMP chunks. In particular, I want to gain access to "Title", "Tags"...
SoaringBird's user avatar
4 votes
1 answer
87 views

Compress & Optimise Existing Images

Joomla 3.9.21 I am working on a site that is very image heavy, most images are within the EasyBlog component and amount to approximately 8GB, the original administrators didn't optimise the images for ...
jonboy's user avatar
  • 3,613
1 vote
0 answers
26 views

Joomla mkdir() error

I have a problem with the Virtuemart Color Swatch plugin for Joomla 3. When I add thumbnails to the product, in the admin panel, I get this error: Warning: mkdir(): No such file or directory in /var/...
user14521's user avatar
1 vote
1 answer
40 views

Mixed content, no http:// in html

I'm not sure when this started happening, but I noticed today in Google Chrome (and subsequently in Firefox & IE) that my Joomla 3.9.20 site is causing a "Mixed content" warning. I ...
Jimmy's user avatar
  • 327
0 votes
0 answers
26 views

Whitespace characters in image filenames are not working

My Joomla version is 3.7.2 and my problem is that category images do not render when the filename contains whitespace characters. For example, an image name like: Atlas Vandal Resistant category ...
Kirpal's user avatar
  • 1
0 votes
1 answer
45 views

Photo size validation

I use the Fox Contact component on my website, and through that component users send me photos (as an attachment) I had to make a few modifications in the upload form itself and make filters for file ...
Midhat's user avatar
  • 109
0 votes
0 answers
26 views

image is not displaying

I download envor template. I am using Azura page builder to add or delete an element. There is one menu named "Pages" in that there is a submenu name "about company" when I am doing it save as copy in ...
harshita gupta's user avatar
1 vote
1 answer
32 views

Mod_Feed removing the strip image function what do the True & False do?

I want to remove the strip image function from mod_feed in the administrator area. mod_feed/tmpl/default.php at line 118 // Strip the images. $text = JFilterOutput::stripImages($text); $text = ...
purple11111's user avatar
1 vote
1 answer
47 views

Building a new module that loads articles not adding slashes in front of images

i am currently building a new module that loads joomla articles via ajax. During the final tests I noticed that image links are (relative links) not handled correctly. If an image is added to an ...
Marco's user avatar
  • 685
1 vote
1 answer
388 views

How to include images in Joomla's search results?

I'm trying to display images in search results for the default search of Joomla. I messed with some code from the web and I managed to display images with the following: in template/html/com_search/...
johnl's user avatar
  • 85
2 votes
2 answers
139 views

Latest articles structured data markup

I have added microdata into every article manually and it works fine. Now I want to insert them into the latest articles module. To override the module in my template and I added: <li itemscope ...
johnl's user avatar
  • 85
0 votes
1 answer
135 views

Listening for a "image upload" event

I want to be able to programatically keep track of new images that have been added, so that I can periodically run a script that does something with the new images. My idea is to have a plugin that ...
William's user avatar
  • 299
3 votes
1 answer
311 views

Programmatically set article image

I generate/update several articles through a PHP script (in the cli folder) that parses an external data source (custom tables). This works well. Now, if an article has not yet an image, the script ...
nicolallias's user avatar
1 vote
1 answer
603 views

Front-end custom Joomla module to upload an image and save it in the Joomla images folder

I work on a custom Joomla module that would let users to upload profile images. I created a JForm and wanted to use the form field type "file" as below: <field name="Photo" type="file" label="...
wanderlusted's user avatar
1 vote
0 answers
157 views

How can I use first image in article as featured image?

I have searched all over the internet but nothing got useful. I have only hope on this forum. Please tell me how can I use the first image of the article in Joomla as featured image. I don't want to ...
Anshul Kashyap's user avatar
2 votes
1 answer
67 views

Create a new folder in 'images' when installing module

I'm working on a basic module to display an image carousel. The module itself works well, but what I want to do now is create a new folder called 'carousel' within the root 'images' folder when the ...
JJBW's user avatar
  • 43
0 votes
1 answer
342 views

Resize image width in function of set image height in CSS?

I'm trying to tell an image to be displayed with a maximum height of 400 pixels, and a width adapted onto the used height, with the following CSS - Code: span.itemImage img { max-height:400px; ...
Joe's user avatar
  • 105
2 votes
1 answer
404 views

Define a default intro image on article submissions

I'm searching a way to define a default intro image in the Joomla article creator from the core (when a user create an article if he don't add an intro image there is one by default generated from a ...
Paul Aptel's user avatar
0 votes
1 answer
524 views

get intro-image from article?

I do not get the images out of my article. The article var is initialized, but the images and pictures vars seem to be empty. Any hints what I do wrong here? <?php $id = JFactory::...
laendle's user avatar
  • 181
2 votes
1 answer
49 views

Additional "Images And Links" fields - corect way

Just edited administrator/component/com_content/models/forms/article.xml to add more Images fields. The control is very user-friendly. Is there a way of doing it more right without changing core ...
Ross's user avatar
  • 133
1 vote
1 answer
287 views

Add html to Article Image captions

While adding the featured image of an article (Intro Image and Full Article Image), I need to add some simple HTML to the Caption field, since these captions contain scientific names, that must be ...
dolma33's user avatar
  • 177
1 vote
2 answers
1k views

Why is there no way to show intro image in single article page?

I find this very inconsiderate. For most articles, intro image = full image. Why do users have to do the "assign image" chore twice? Why can't there be a setting to display intro image in the single ...
shenkwen's user avatar
  • 1,389
2 votes
1 answer
827 views

Adding a title attribute on the image tag - How to customize article's full image layout?

I want the full image of an article to use the value of an alt attribute in a title attribute, too. I have been searching everywhere and just can't find the correct file. The file which provides the ...
Insane's user avatar
  • 121
1 vote
1 answer
100 views

Adding pictures to virtuemart product

All I want to do is upload pictures to my virtuemart products from Imgur rather than my computer because I can only use a total of 2 gigabytes for the whole site. I am just learning to do any website ...
Cindi's user avatar
  • 11
0 votes
2 answers
48 views

Joomla 1.0 - Locating images within a template

I am trying to locate the images folder within the template in Joomla 1.0. I can press Edit HTML and Edit CSS to edit the codes for the site, but I cannot find any ways to access the files in the ...
user avatar
1 vote
1 answer
1k views

Create thumbnails with custom field images

I have articles with custom fields type media. I need to create thumbnails from these images with a fixed widths (1200px, 700px, 450px and 250px) to display with the picture element and on different ...
web-tiki's user avatar
  • 1,373
1 vote
1 answer
1k views

How to prevent Article images width being stretched to 100%

I am asking about this again because the solution from joomla v3.6 article - uploaded image stretches to max does not seem to work for me. The issue I have is the article images keeping their size ...
Will Kim's user avatar
  • 203
2 votes
1 answer
616 views

Images appear in backend but not in frontend

I've installed and removed the JomSEF plugin for redirecting. Now I've a problem. When I create an article, in TinyMCE I insert images and I can see it in the article. When I publish it, images ...
Jepessen's user avatar
  • 273
0 votes
1 answer
722 views

Show image from the article in blog layout

I'm looking for some help with our website. So, we have this news site which gets lots and lots of new articles in short period of time and therefore it requires lots of journalists working on it. ...
JxM's user avatar
  • 43