# Summary

This module uses JQuery to dynamically add captions to images. The image title attribute is used to create the caption.
It basically wraps the image in an HTML container div, takes the image title text and appends that in a child div underneath the image.

# Project URL

https://www.drupal.org/project/image_caption

# Where is the code?

https://www.drupal.org/sandbox/maskys/2933889

# Estimated completion date

January 2017

# Dependencies

N/A

# Who's doing the port?

Kifah Meeran (http://drupal.org/u/kifah-meeran)

# What help do they need?

Writing Tests
Review

# D8 roadmap

Solve the issues and carry out the tasks in the sandbox's issue queue.
Write tests.

# Background and reference information

N/A

Comments

prateekS created an issue. See original summary.

prateekS’s picture

Issue summary: View changes
zeeshan_khan’s picture

Issue summary: View changes
devtherock’s picture

Issue summary: View changes
devtherock’s picture

devtherock’s picture

Title: Image Caption » [image_caption] Image Caption
Benia’s picture

Should be in D8 core.

rahulbaisanemca’s picture

Hi prateekS,

Given git link https://git.drupal.org/project/image_caption.git is not working
can you please update it.

Thanks,
Rahul.

geraldito’s picture

The correct link is http://cgit.drupalcode.org/image_caption but there is nothing to see from D8 development. Anybody working on that?

MaskyS’s picture

Assigned: prateekS » MaskyS
Issue summary: View changes
MaskyS’s picture

Issue summary: View changes
MaskyS’s picture

Issue summary: View changes
MaskyS’s picture

Issue summary: View changes

Sorry, made editswrong issue

mmjvb’s picture

@Kifah Meeran How far do the mistakes go? Are you working on this or not?

MaskyS’s picture

@mmjvb I am indeed working on this. I hope to add my sandbox link here in a few hours, once I am sure my module is functional.

MaskyS’s picture

Issue summary: View changes
MaskyS’s picture

Status: Active » Needs work

My sandbox is finally functional (Link in issue summary above). Here are some things that are different from the D7 version:

- The user now has to choose whether to use JQuery or Input Filter method to create & display captions, in order to prevent both filters from processing the same image. Besides, using both modules would not have any benefits. If the user wanted to style captions in different ways, he could use different styles along with the "Without Javascript" option.

- Coding standards have been fixed, including the changes in #2765965.

- Issue #785664 has been fixed.

- Issue #2458101 has been fixed.

- Issue #1918618 has been fixed.

- Issue #1403474 has been fixed.

- Issue #1889266 has been fixed.

- Readme has been updated to follow the README Template and now contains more information.

Why did I choose to go ahead with these fixes before they were commited to the 7.1x branch?

1) They work
2) Some of these were postponed due to possible incompatibility with browsers (namely IE 9 and below), but those are no longer supported now, and HTML5 elements now work in 98% of browsers.. Drupal itself states that it is compatible IE 11 and above.
3) The maintainer has been inactive for years.

Work that remains to be done:

These are listed directly on the issue queue of the sandbox. (https://www.drupal.org/project/issues/2933889)

I will also try to contact the maintainer to try and get a 8.1x branch in the official project's repo.

MaskyS’s picture

Issue summary: View changes
avpaderno’s picture

Assigned: MaskyS » Unassigned
avpaderno’s picture

Status: Needs work » Closed (outdated)

The project does not have releases for supported Drupal versions.