Image Effects Kits provides additional image effects that can be added to image styles.
It includes border effect, watermark effect, image resizing effect, and so on.
It provides many options for each image style, so end-user will easy to customize the effects.

My project page:
https://drupal.org/sandbox/jay.chen/2052315

My project git repository:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/jay.chen/2052315.git

CommentFileSizeAuthor
#7 iek_font.jpg66.7 KBjay.chen
#2 iek-7.x-1.x.png82.23 KBjay.chen
iek.png92.06 KBjay.chen

Comments

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxjaychen2052315git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

jay.chen’s picture

Status: Needs work » Needs review
StatusFileSize
new82.23 KB

I fixed all the errors on http://ventral.org.
Please review. Thanks.

rolando.caldas’s picture

Hello Jay.Chen!

Manual review is as follows:

.module lines 12,13:

  $drupal_module_path = drupal_get_path('module', 'iek');
  require_once $drupal_module_path . '/iek.gd.inc';

you can changed it to a "more direct call"

require_once realpath(__DIR__) . '/iek.gd.inc';

.module lines 286, 287, 302, 304, 331, 333 and 334

    $summary['border thick'] = $data['border_thick'] . t('px');
    $summary['padding'] = $data['padding'] . t('px');

    $summary['width'] = $data['width'] . t('px');
    $summary['height'] = $data['height'] . t('px');


    $summary['size'] = $data['size'] . t('px');
    $summary['angle'] = $data['angle'];
    $summary['x-ordinate'] = $data['x'] . t('px');
    $summary['y-ordinate'] = $data['y'] . t('px');

the t() call is not necessary. The px value will not be translated.

.module lines 300 and 318

$data = $variables['data'];
...
 if ($data['width'] && $data['height']) {
...
  if ($data['text']
    && $data['font']
    && $data['color']
    && $data['size']
    && $data['angle']
    && $data['x']
    && $data['y']) {

If the key text or another doens't exist, the php will create a notice. Evaluate use isset() istead

if (isset($variables['data'])) {
...
if (isset($data['width']) && isset($data['height'])) {
....
rolando.caldas’s picture

Status: Needs review » Needs work

sorry I didn't change the status :(

jay.chen’s picture

Status: Needs work » Needs review

Hi, Rolando Caldas,
I fixed the #2 issues. Please review. Thanks.

saemie’s picture

Status: Needs review » Needs work

Hi there, I like this module.

[general observation]
You've done well to apply the Drupal code standards thoroughly.

[manual review]
I get the following error when choosing certain fonts for a watermark effect:

Warning: imagettftext(): Could not find/open font in iek_gd_watermark() (line 491 of PATH/sites/all/modules/contrib/iek/iek.gd.inc).

To recreate:
On admin/config/media/image-styles/edit/iek_photo
I edited the default IEK - Watermark effect and select one of the following fonts:

  • `Abduction`
  • `Tuffy`
  • `Tuffy Bold`

With the other fonts there is no problem. This is strange since these fonts are included in the `fonts` folder. Its worth a look if you can recreate it.

jay.chen’s picture

Status: Needs work » Needs review
StatusFileSize
new66.7 KB

But it seems it works for me on both Windows and Linux web servers. See my attachment image.

If it is still not working for you, then maybe I can remove these three fonts from my module.

saemie’s picture

Status: Needs review » Needs work

Hello @Jay.Chen

I found the cause. Change the following font file names to all-lower-case. This will solve the problem.

  • Abduction.ttf to abduction.ttf
  • Tuffy.ttf to tuffy.ttf
  • Tuffy_Bold.ttf to tuffy_bold.ttf

I can't tell why this error wasn't happening when you tried. Either way this should solve the problem for other people who may download your module.

Cheers

jay.chen’s picture

Status: Needs work » Needs review

Hi, you're right. I re-checkout the codes to my local, and I found that these three fonts are still in first letter capitalized state but actually I have renamed them to all lower case before. Probably my OS (Windows) is not case sensitive, so it doesn't think that is a change even if I rename them.

Anyway, finally I get all these fonts name to all lower case and committed it. Please review.

Thank you very much!

rolando.caldas’s picture

Hello.

I have to correct one of the points of my review. Sorry. In the review process of a module of mine told me that instead utilizase module_load_include required, so I adopted that point as a correction to make.

My module has passed the review process, but the person who enabled the publication of the project (cweagans) commented as follows on the subject:

For this bit:

 389 /**
 390  * include the block functions file
 391  */
 392 require_once realpath(__DIR__) . '/pay_with_a_tweet.blocks.inc';
 393 
 394 /**
 395  * include the tokens functions file
 396  */
 397 require_once realpath(__DIR__) . '/pay_with_a_tweet.tokens.inc';

1) To load module include files, you should use module_load_include; and
2) If you're including this unconditionally, there's no reason to split them out into another file. It is, in fact, a bit slower, since you're adding a couple of disk reads/file open operations into the mix. You could probably just copy the contents of those files into your .module file and you'd be fine.

I understand that, in this case, it is better to follow the recommendation of a person who can enable publishing projects.

jay.chen’s picture

Thanks for your hints, rolando.caldas. The following are my changes.
- I changed my code to use "module_load_include" instead of "require_once".
- Since user can choose different image toolkits such GD or ImageMagick, so my file "iek.gd.inc" should be a conditional file and I keep to split it into a separate file.
- I defined a new image toolkit called "custom", but there is no any implementations for this new toolkit. So I just removed it from my codes.

dman’s picture

Assigned: Unassigned » dman
Status: Needs review » Postponed

Woah.
Um, have you not seen Image(cache) Actions ? It's been doing all these things since Drupal4.
In a project application review, You must "Search for similar modules, and explain how your application is different.". I just have to google for drupal image effects and it's the top result.

Duplication
Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. If you believe your project contains features that are not already available in that project, Please open an issue in the Imagecache Actions issue queue to discuss what you need. You should also get in contact with the maintainer(s) to offer your help to move the project forward.

If that fails for whatever reason please get back to us and set this back to "needs review".

PA robot’s picture

Status: Postponed » Closed (duplicate)
Multiple Applications
It appears that there have been multiple project applications opened under your username:

Project 1: https://drupal.org/node/2076185

Project 2: https://drupal.org/node/2052349

As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).

If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.

I'm a robot and this is an automated message from Project Applications Scraper.

avpaderno’s picture

Assigned: dman » Unassigned
Issue summary: View changes
Related issues: +#2076185: [D7] Quick Update