Hi all,

not sure how it works, I would like to contribute to the 7.x-2.x version which has a few bugs that prevent usage, whose patches have not been committed for a long time.

I have a forked version of 7.x-2.x-dev on a sandbox project I worked on, which fixes
#1378018: text image no works in cck
#1421292: Cannot get textimage to work in D7 - no presets selectable in View or display fields
#1274040: Fatal error: Call to undefined function ctools_export_load_object()
#1273760: Can't create images through url.

Plus code has been cleaned up quite a lot (but still more to do...) and now conforms to Drupal coding standards (PAReview clean on ventral.org).

You can git clone here
git clone --recursive --branch 7.x-2.x http://git.drupal.org/sandbox/mondrake/1647516.git

Or patch (against 7.x-2-x-dev) attached.

Please let me know if this is useful and/or I can help (still quite new to the whole process here).

Cheers,
mondrake

CommentFileSizeAuthor
7.x-2.x.patch150.37 KBmondrake

Comments

mondrake’s picture

Category: task » support
mondrake’s picture

Title: Proposal to contribute to 7.x-2.x » Proposal to contribute to Textimage 7.x-2.x
wundo’s picture

First of all thanks for the initiative, I'll be reviewing it this weekend and will get back to you ok?

wundo’s picture

Hi Mondrake,
Is it possible to break this down to smaller patches?

wundo’s picture

Status: Active » Needs work
mondrake’s picture

Status: Needs work » Needs review

Hi wundo,

thanks for coming back.

You may want to take a look at the sequence of commits and diffs on my sandbox project at http://drupalcode.org/sandbox/mondrake/1647516.git/shortlog/refs/heads/7... , you will see the steps that led to the patch I eventually posted.

if your question is about breaking the patch itself into patches addressing each one of the issues, then honestly I would not know how to do it now... The way I did it was to clone the official project git in my sandbox and then posting commits till I got to the result I needed.

Anyway. To be quite frank I moved on. I have some ideas for additional features and to align better to Drupal 7:

  • make use of the Image features that were embedded in core Drupal 7 (image effects/styles)
  • create a 'text_overlay' effect to be used in Image styles (i.e. start from an image insetad of starting from the preset)
  • review of caching functions (again, aligned to Image core features)
  • backgrounds to be part of an administration form, with upload/delete capabilities
  • direct text to image theme (i.e. without having to use presets)
  • review image and preset settings structure
  • use OOP where possible
  • @font-your-face module integration for font management
  • use of wrappers for image storage

So in my sandbox I started working on a 7.x-3.x branch. I do not know how long will it take (this is taking my free time), and whether I'll end up with a new release of Textimage or rather with an entirely new module. You can check my progress there if you want. In any case, I'll touch base with you when I will have something that can be made public, ok?

cheers
mondrake

wundo’s picture

Regarding your patch, I think the solution suggested by szantog and mallezie for #1274040: Fatal error: Call to undefined function ctools_export_load_object() which is already included in your patch removes the need for the hook_init you implemented.

For your 7.x-3.x branch I'd welcome you to commit that to the main repository if you're interested. But I'd really appreciate to get 7.x-2.x to a releasable condition first.

mondrake’s picture

Makes sense. As to the hook_init, I introduced it as I prefer to see code being part of specifc function rather than 'loose', outside of any function. But I agree, can do without.

wundo’s picture

Status: Needs review » Needs work

New maintainer mondrake added and permissions updated.

Welcome aboard! :D

Please note that half of the tickets your patch solved have been already fixed, so IMO the best option would be re-rolling the missing two instead of merging the whole branch, what do you think?

Cheers,
Fabiano

mondrake’s picture

Status: Needs work » Closed (won't fix)

Thanks wundo. :-)

Agree. Does it mean that I can push commits to the repo now?
Currently I don't have time, but let's say by the end if the month I should be able to have an environment up with 7.x-2.x dev and push the commits for the two remaining. Ok with that?

Closing this issue then.

mondrake

wundo’s picture

> Agree. Does it mean that I can push commits to the repo now?

Yes! :)

> Currently I don't have time, but let's say by the end if the month I should be able to have an environment up with 7.x-2.x dev and push the commits for the two remaining. Ok with that?

Sure :)

mondrake’s picture

Hi wundo,

I just pushed a commit to fix #1273760: Can't create images through url. in 7.x-2.x; I have not edited the issue in the issue queue yet, that should be done I guess after a new release?

For #1378018: text image no works in cck, that was to me a duplicate of #1421292: Cannot get textimage to work in D7 - no presets selectable in View or display fields, which you fixed in alpha2 already, so I marked it fixed in the issue queue.

Note: the 7.x-2.x-dev release is not marked for snapshot build so the dev package is currently outdated by the alpha2 release.

Looking forward to your comments

wundo’s picture

As soon as you commit the fix you can mark the issue as fixed, just remember to update its version to 7.x-2.x-dev.

The issue with -dev was that it was tracking master and not the 7.x-2.x branch. (Already fixed)

mondrake’s picture

OK done