Hot answers tagged

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 =...
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 ...
  • 7,367
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 ...
  • 3,187
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" -> "...
  • 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 ...
  • 6,123
3 votes

Member Identification Card

Apologies. This is a Drupal answer and I know you are on Wordpress, but this ticket might attract drupal users too so thought I would outline the approach. There is a View you can download here which ...
  • 27.3k
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 ...
  • 6,123
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
2 votes

Warning: getimagesize() error profile picture

It sounds like there's a settings mismatch. Check the values of "Image Directory" on Administer menu > System Settings > Directories and "Image Upload URL" on Administer menu > System Settings > ...
2 votes
Accepted

Any happy IE8 users with civicrm image display issues?

Not exactly a fix, but rather a workaround: https://www.drupal.org/project/imagecache_external module has been used for an additional image pre-processing. Images processed by drupal imagecache module ...
  • 1,449
2 votes
Accepted

Image Extention .tif

You can add file types in Safe File Extension Options in the admin console. (I don't know if it's advised, but it's certainly possible :) Go to Administer > System Settings > Safe File Extensions, ...
  • 1,004
2 votes
Accepted

Member Identification Card

I have implemented membership cards, however on a custom basis. This has been from the back office side of things. Your specification of a member printing their own card is intriguing, though that ...
  • 2,455
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 ...
  • 2,426
2 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 ...
  • 3,187
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 ...
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.
  • 18.8k
2 votes

Broken Navigation Image Gifs,and

The Base URL is set in civicrm.settings.php. From your screenshot, it looks like you're running CiviCRM on Drupal; find civicrm.settings.php in <drupal root>/sites/default/civicrm.settings.php.
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.
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/...
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 ...
1 vote

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 ...
1 vote

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 ...
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 ...
  • 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 ...
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.
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 ...
  • 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 ...
  • 974
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 - ...
  • 4,379
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 ...
  • 6,123
1 vote

KCFinder in https context doesn't browse

I changed http to https in my theme css and the message disappeared. Now there's still one error. I changed the editor from tiny or CKE to "default drupal editor". And it WORKS !
  • 109

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