The ImageField module provides an image upload field for CCK.

learn more… | top users | synonyms

0
votes
1answer
12 views

How to modify display of image form metadata after upload on node edit form?

After uploading an image, how do I hook in and change the display so that Title appears above Alternate text?
1
vote
0answers
31 views

“Remove All” button for unlimited fields in Drupal 7

I've written a custom module for this functionality where my below code is able to delete the files but I think there should be a better way for doing that! <?php /** * Implements ...
3
votes
1answer
32 views

Get image width for a styled image in module

In hook_node_load I need to get the width and height of a styled image, for a given fid. The image style has only height effect and the width is scaled and calculated by Drupal, so using ...
0
votes
1answer
44 views

Image field, how add title field?

Here drupal have a field for set a description for each images: How I can add a custom field for each image please ? By example a "Title" or "Author" field ? Thanks.
0
votes
2answers
17 views

How might I display a field twice in a node using different field formatters?

Question: How can I show the field_showcase_headshot field both as a picture on screen and as a download link? Set up: From the load tab of Devel, I have a few fields on this node. The field ...
1
vote
1answer
20 views

How to print and/or manipulate individual image attributes and suppress width and height via the image.html.twig template

I had to get rid of the width and height attributes in my images and wanted to learn better the possibilites of Twig in Drupal.
0
votes
2answers
62 views

How to get alternative text on image hover

How to display image's alternative text when an user hovers on that image. I have come across few posts that displays popups and views, but not the alternative text of the corresponding images. Some ...
0
votes
0answers
24 views

Imagefield Crop - Cannot read property 'substring' of undefined

I'am using imagefield_crop (https://www.drupal.org/project/imagefield_crop) to resize images in my site after upload. I have this JS error in the console after uploading my image : Uncaught ...
0
votes
0answers
27 views

How to get 'default image' value of image field token?

I have an imagefield with a 'default image' uploaded and set in the field settings. When I use this image field's token, it does not return the 'default image' I'd expect to see when nothing is ...
1
vote
1answer
57 views

Adding an image base field to custom content entity

consider the following situation: I have created a custom content entity with several base fields (string and string_long fields) and it works flawlessly. In addition I want the entity to hold an ...
1
vote
1answer
20 views

How do I load all images and thumbnail for a multivalued image field in node view?

I have a content type with a multivalued image field. I want to make the image field render with one main image and all the thumbnail. When any of the thumbnail is clicked then it's respective image ...
1
vote
0answers
45 views

Image preview thumbnail does not display

Drupal 7. When adding a core image field to a content type to display an image, the preview thumbnail does not display on the edit page when uploading an image. What appears after clicking on the ...
0
votes
0answers
13 views

Imagefield_crop : Can not crop more than one image

I'am using Imagefield_crop with plupload module, and i'am trying to crop multiple images in one page. The cropping is visible in the page however when i submit the form only the first image is ...
1
vote
2answers
63 views

Only display image field when administrator approves it

I'm building an advertising website using Drupal 7, in my case anyone can add an advertisement without any restriction, except that the images should be hidden first until the website admin approves ...
-2
votes
2answers
31 views

Modify the image preview area after upload in Drupal 7

I am new to Drupal. I wanted to have table less render view of images after upload at editing window. I found lots of help content, but they are hard to understand. Currently i have following view: ...
0
votes
1answer
33 views

Imce file browser not showing select button

The IMCE file browser seems to be missing it's select button. On this File field, I'd like content creators to choose an image that is already located on the server (not uploading a new image). What ...
-2
votes
1answer
25 views

How can I edit the way the images are displayed? [closed]

For a course in university , we have to make a website in Drupal. The problem is, we don't know a lot of HTML and CSS (except for the information we can find on internet). So I don't really know how ...
-1
votes
1answer
30 views

need to have image dragging option to position images in Gallery

I have created a image content type and upload few images. And then I created another content type for Gallery and using node reference field, I added several images under a gallery. I followed the ...
0
votes
0answers
11 views

Get images from textfield and save them in filefield

I've been working with Drupal for some time now and I am just scratching the surface of module programming, so maybe someone can help me get me on my way here. I am looking for a module or a bit of ...
1
vote
1answer
77 views

Uploaded file not shown in custom content type / Image not attached to content type

In Drupal 7, I am trying to upload an image that belongs to a custom type. I click the Browse button, choose the file and upload. Until there, all seems to work well. However, when I click next, ...
0
votes
1answer
55 views

Get the url of image field

I am using this solution to print the image for a node in the html.tpl.php file. This works, except it has the full markup. I need just the url for the image. Any ideas of how to print this out? For ...
0
votes
1answer
49 views

File (Field) Paths serial token

I have an image field type configured to accept an unlimited number of values. Using the File (Field) Paths module I have set the file name field value to [node:title].[file:ffp-extension-original] ...
0
votes
1answer
69 views

Changing value of min / max resolution for an image field dynamically based on a previous select list

Does anyone know if there is a way in Drupal 7 to change dynamically the value of minimum / maximum resolution for an image base on a previous select list. Example : I have a select with 3 elements ...
0
votes
1answer
14 views

Record image details for each image

I wonder if someone could tell me how to add details for each image I have for my content on my Drupal 7.32 website (say title and description). For Example, I have a Content Type called Info, this ...
1
vote
1answer
47 views

Upload images in external server

I work between two servers, and I use one for development and the other for deployment. It’s very easy because I can tell the development one to use the database of the deployment sometimes. What I ...
1
vote
1answer
62 views

Alter field (multiple values) to add more items/values of another field

In my case, I use Drupal Commerce (Kickstart 2x distribution) with a images field (multiples/unlimited values). I need to display all images of parent product AND images of their childrens ...
0
votes
1answer
41 views

Image upload field won't show

I have added a image field with upload widget to my content type. It is shown when I try to add content as administrator, but not with other user types. Any ideas what may be wrong? Probably some ...
0
votes
0answers
39 views

Override the display of a default image - Drupal 7

I have a custom content type (my_content_type) with a an image field called featured_image. featured_image has a default value which is displayed when a specific image is not provided. For certain ...
0
votes
0answers
20 views

Attach custom meta infos to multiupload imagefield widget

I'm wondering if Drupal allows me to attach multiple informations to an multiupload image field. F.e. copyright, creator and taxonomy references for people appearing on the picture. Is there any ...
0
votes
1answer
13 views

Is there a stable way to fill a filefield/imagefield via bulk upload in D7

OK, here's the deal. I've implemented image gallery nodes in D7 the straight-forward way, i.e. create node type 'gallery' and add an imagefield with unbounded number of values. Nice markup via ...
2
votes
0answers
189 views

Ajax error when uploading image [closed]

I have a problem on my Drupal website since 2 days. When I try to add a new image (50 KB), the thumbnail is not displayed after transferring the image so I have to save the element and open it again ...
0
votes
2answers
75 views

Add cropping option to an image form

I've the next form. $form['imagen'] = array( '#title' => t('Image'), '#type' => 'managed_file', '#upload_validators' => array('file_validate_extensions' => ...
0
votes
4answers
55 views

How do I create a photobox for image?

Can anyone please guide me on how do I create a photobox that contains image and I wanted to display that image on landing page. I have created content type as an Image. But, I don't know how to ...
0
votes
0answers
73 views

Where do I add this property to made plupload start the upload automatically

I found a great solution to upload images automatically, but I need help understanding where the code goes and how I figure out what the "my_element" value should be. This is a follow-up question to ...
0
votes
0answers
47 views

How do I insert an inline image uploaded into another node?

The following scenario: D6, CCK, Filefield and Imagefield. The image is uploaded into node "foo". This image is supposed to be inserted inline into the body text of node "bar". I'm neither using ...
0
votes
2answers
39 views

How to force migrations to not copy files

I have a migration with an image field and the files already exist on the server where I want them. There is a file, some_file.jpg that already exists at sites/default/files/some_file.jpg but when I ...
1
vote
1answer
37 views

How to set different default images in an image field per domain?

I'm working on a set of similar websites (promoting products of different regions) separated by Domain Access module. I'd like to set different default image in an image field in each site. Is it ...
0
votes
2answers
69 views

Creating a Field in order to add Icons to content's Title

we want to add Icons before the Content's title just like the picture below (icon before Glory of the Hero): but the problem about the stuff already existing in prior asked questions is that we're ...
0
votes
1answer
59 views

Programmtically add image to custom image field User

I can't figure out how to add image to a custom image field on a sepcific user. $f = file_save_data($user['thumbnailphoto'][0], 'private://profile/'. $data['name'] .'.jpg', FILE_EXISTS_REPLACE); ...
1
vote
0answers
46 views

Injecting field data in a custom entity

I have created a custom fieldable entity. Now I want to inject the field data into the entity and render the complete entity with the fields. The following code is working for text fields and ...
1
vote
2answers
288 views

Save multi value in multi value field programmatically

apologize every one , my code was correct , I had a mistake in content type .2 similar content type with 2 similar image field :P but I let it and don't delete this because maybe be useful in futures ...
0
votes
0answers
125 views

Upload image temporary and on form submit make it permanent

I have made a custom module where I load the create node form for an "announcement" content type. What i want Besides the text and select fields, I require an image field which supports multiple ...
0
votes
0answers
92 views

How to paginate multivalue image field and still show all images in Colorbox?

I have built some simple photo galleries by creating a content type 'gallery' with a multi-value image field holding the images. I've added the Colorbox module and am able to create a nice page with ...
0
votes
1answer
54 views

field slideshow module and image field caption

I want to use image field caption and field slideshow. How can I set the caption field as caption for my slideshow? I tried to apply the update but it didn't work.
4
votes
1answer
53 views

Image crop for touch devices

I am using imagecrop module for imagecrop field. but it is not working in touch deveices like ( ipad ). There is any best module for image crop in touch devices?. please help me.
0
votes
1answer
48 views

Product images with thumbnails and preview

I would like to have image gallery with thumbnails and preview above for every product in my Drupal 7 site. What I need to achieve is for example here: ...
0
votes
1answer
16 views

Tag/Label an image in an image field with Taxonomy terms?

Is it possible to tag images as you upload them on to a node in a multiple values image field? Image a node with a set of 3 images: image_1.jpg (tagged with: red) image_2.jpg (tagged with: blue) ...
4
votes
1answer
417 views

Unable to generate og:image using Metatag and ImageCache Token modules

I have installed the Metatag module, along with ImageCache Token, but it just does not work. I have tried many of the different available tokens in the Open Graph image field for my node, and none ...
0
votes
2answers
324 views

how to output image file from database drupal 7?

I have created testing module that will upload image and outputting it to my page. but, I can't seem to output my image file from my database. here's my code function database_ex_menu() { $items = ...
0
votes
1answer
47 views

Assign terms to image field items

This is what I'm trying to achieve. 1) The website has a gallery page which is made from one node, so each time uploading new images to the gallery, you just edit this one node. 2) EVA is attached ...