Skip to main content
6 votes
Accepted

Upload a contact image via the API

Contact Image URL is directly stored in civicrm_contact table, so I think if you have the URL which can display an image, you should be directly able to use the contact create API as below - $result =...
jitendra - fuzion's user avatar
5 votes

Inserting images in mailing

There are two issues going on here. First, you have images that you attempt to resize, but they are appearing wrong for many recipients. Second, you can't fix the images. I can't answer the second ...
Andie Hunt's user avatar
  • 7,462
3 votes
Accepted

Cannot upload images using CKEditor on message template after 5.45 upgrade

Revert the session id fix until core team has a fix
Pradeep Nayak's user avatar
3 votes
Accepted

JPG files uploaded as notes can't be viewed

Eventually I found out what the problem is and it is caused by the child theme that I had created. Another problem elsewhere that had an extra blank line at the start of a news feed and Demerit's ...
Mick Kahn's user avatar
  • 3,227
3 votes

How to Add Image Field in CIVICRM

Yes, there's no custom field type specifically for images. You can of course put an image in a file field type. Interestingly, the image field that is available for organizations is technically there ...
Alan Dixon's user avatar
  • 6,861
3 votes
Accepted

Adding images in CKEditor

I forgot to post an answer before, but am prompted to do so as someone has a similar problem. I needed to set directory 755 and files 644 for wp-content/plugins/civicrm/civicrm/packages/kcfinder ...
Mick Kahn's user avatar
  • 3,227
3 votes
Accepted

image directory path seems to be ignored in CiviMail editor

Ok, I've worked it out. And it turns out that there is a location where CKEditor settings can be configured, namely at civicrm/admin/ckeditor?preset=default. (Through the GUI it's at "Administer" -> "...
rjoz's user avatar
  • 51
3 votes

How do I upload images to emails in Civi?

The most common cause of that symptom in recents releases is due to a security enhancement in an updated version of the wysiwyg editor that is bundled with CiviCRM, that disallows symlinks. If that ...
Alan Dixon's user avatar
  • 6,861
2 votes
Accepted

Change thumbnail size on public directory detail page

I believe that thumbnail size is set by CSS (at least it is in the backend), the actual contact image should be whatever size you uploaded the image at originally. Perhaps you can adjust the CSS to ...
RayWright's user avatar
  • 2,488
2 votes
Accepted

KCFinder - Is there a way to allow the user to specify the upload folder? Or change the default?

Right-click on the "images" folder in the kcfinder browser. You can choose New Subfolder.
Demerit's user avatar
  • 23.3k
2 votes

Is it possible send a gif image correctly without breaking it?

I tried to do this - 2.8 v of Mosaico extension and Deprecate iMagick PHP extension - didn't work. In the end I made the animated GIF from a movie I put into Keynote (Mac) and then exported as an ...
Tony Horrocks's user avatar
2 votes

Is it possible send a gif image correctly without breaking it?

The issue is with the intervention library used, which doesn't support animated GIFs. The intervention bug is 5+ years old. While intervention is open source, the maintainer is mostly inactive, and ...
Jon G - Megaphone Tech's user avatar
2 votes

Is it possible send a gif image correctly without breaking it?

Did you find an answer to your question? It seems that the platform does not accept the .gif format. Admin support and I figured it out... kinda: It works if you use the "traditional" email. The ...
user7857's user avatar
2 votes

Contact Image in Message Template

Also, depends on your setup, but if the message is going external, then the img src url would need to refer to an externally web hosted image file. Apologies if I'm stating the obvious.
Simon Walden's user avatar
2 votes
Accepted

Browsing for images in the editor leads to an unexpected Error

This is caused by a bug that prevents users that configure multiple languages to use the kcfinder plugin. So check if there are more available languages are configured at https:////civicrm/admin/...
Kainuk - CiviCooP's user avatar
2 votes
Accepted

How to retrieve custom field image files?

Without more context about what the API call you're making is, I can't say why it just returns a number. Here's what happens when I call the API from my command line to get the results of the ...
Jon G - Megaphone Tech's user avatar
2 votes
Accepted

Error messages in newsletters

It sounds like the images may not have been deleted properly. To test this - create a new email, add a single line of text, then press the Source button on the formatting toolbar. Note how it shows ...
Jon G - Megaphone Tech's user avatar
1 vote

Handling HEIC/HEIF photos

This is hard-coded at https://github.com/civicrm/civicrm-core/blob/c8a7531ec9785161f4cdc6b1d51e9ff01989db47/CRM/Contact/BAO/Contact.php#L1180 But I'm sure core would be open to updating that list. You ...
Demerit's user avatar
  • 23.3k
1 vote

Image cropping with TinyMCE in Mosaico

I implemented an image editor which you can grab here: https://github.com/lcdservices/biz.lcdservices.mosaicoimageeditor I built it for a specific client and have not yet tested how portable it is in ...
lcdservices's user avatar
1 vote

problems with kcfinder image browser in Chrome

You don't mention CMS but if this is Drupal then I would recommend you upgrade to 7.71 due to Fix for jQuery Form bug in Chromium-based browsers
petednz - fuzion's user avatar
  • 28.4k
1 vote

unable to upload image file when creating a message

This isn't fixing the root issue, but I tend to think the best practice here is to load media within the Wordpress Media Gallery and link to it in CiviMail. Content is best put in the CMS. That way, ...
Andy Burns's user avatar
  • 3,681
1 vote

Contact URL image display in civiCRM 5.12.4

I managed to get this working. I did a clean install of everything, Followed the wordpress civicrm install instructions for clean URLS Enforced SSL using the siteground hosting built in tools ...
Brad's user avatar
  • 113
1 vote

Mailing template not picking up images

The issue seemed to have been caused by an automatically created .htaccess file in the Resource Image folder. This is being automatically generated but I don't know by what. The contents of the ...
Indar Bhola's user avatar
1 vote

Personal Campaign Page image is not showing

Probably you will need to give 'CiviCRM: access uploaded files' for anonymous user. But this is dangerous to provide access to files for anonymous user.
Pradeep Nayak's user avatar
1 vote

CiviMail Images always appear broken on screen after uploading correctly

If your images are being stored in a directory that prohibits direct access, it will give you that symptom. There's a .htaccess file that performs this function for apache, I'm not sure how that works ...
Alan Dixon's user avatar
  • 6,861
1 vote

Limit file size for "image url" field

You should be able to implement a hook via PHP to validate the profile when it is submitted: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_processProfile/. Someone else may want to chime ...
Sleewok's user avatar
  • 1,146
1 vote

How can I align an image to the top of a cell in civimail?

In the <figure> tag, you could try changing it to <figure class="image" style="display:inline-block vertical-align: top;"> Does that work? Incidentally, there should be a semi-colon ...
peterb's user avatar
  • 1,014
1 vote

Image not displayed in the email with outlook

This is almost certainly a characteristic of Outlook rather than a problem with Civi. Outlook won't necessarily display images - certainly if the 'from' email address is a new one to that Outlook - ...
Andy Clark's user avatar
  • 4,845
1 vote

How to access images on server for CiviMail

Check the ownership of the folders where these images are uploaded to.
petednz - fuzion's user avatar
  • 28.4k
1 vote

How to access images on server for CiviMail

You may want to check Firewall or the settings in WPSecurity (plugin) if you have that installed. I ran into this problem and it was an option in WPSecurity for "Bad Query Strings" which blocked ...
Greg Rundlett's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible