Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2014 at 07:54 UTC
Updated:
4 Sep 2014 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PA robot commentedWe 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.
Comment #2
shyam kumar kunkala commentedfunction image_gd_image_progressive(stdClass $image, array $params) {Reported by pareview tool : http://pareview.sh/pareview/httpgitdrupalorgsandboxdepresz2222075
Comment #3
depresz commentedThank you, I updated git address. Regarding prefixed module name: function reference to image_toolkit_invoke function (includes/image.inc). Actually it's mandatory to force prefix rule and meet image_toolkit_invoke requirements:
Comment #4
depresz commentedComment #5
scotthooker commentedModule works as intended.
Only issue I can see if the naming of
function image_gd_image_progressive(stdClass $image, array $params)
Should perhaps be
image_progressive_image_gd(stdClass $image, array $params)
To conform with coding standards
Comment #6
neetu morwani commented@depresz Module works in terms of functionality.
Nice and simple module.
But, Little more of documentation on project page and listing advantages of using Progressive effect will help users to identify the real worth of the module.
Explain bit about Interlacing and how is it useful in terms of image loading performance. What does Progressive effect does to the image.
And below is the PAReview of the module ->
http://pareview.sh/pareview/httpgitdrupalorgsandboxdepresz2222075 which says that all the functions used in the module should be prefixed with the name of the module.
Change function image_gd_image_progressive(stdClass $image, array $params) to function image_progressive_gd_image(stdClass $image, array $params) { or something which seems more meaningful to you but with correct prefix.
Comment #7
depresz commentedThank you guys for your time. I updated prefixed function as you indicated and now PAReview gives clean output.
No doubt I should update project description in a free time :)
Comment #8
depresz commentedComment #9
valderama commentedHi depresz,
Your README.txt is quite nice, I think it would be a good start for a documentation page. There is a small typo, which I corrected in the attached patch.
I found three issues with your code.
First, there is no need to call
module_load_incas there is no file to include! Simple remove this function call.Second, there is no need for the wrapper function
image_progressive_effect_inc. You can put everything directly intoimage_progressive_effect.Third, the gd lib implementation of your effect needs to fit the naming convention to be actually called. It needs to be named
image_gd_image_progressiveas it needs to follow this pattern: image_{toolkitname}_{method}. (Actually, you have pointed that out in comment #3- I know that the other reviewers have suggested to do different. AFAIK there is no other way.)This will cause PAReview to find an error or warning, however it will not work otherwise.
If you apply the patch, you'd get a positive review from me ;)
Comment #10
valderama commentedComment #11
valderama commentedComment #12
valderama commentedBy the way: here is a way to check if an image is saved interlaced/progressive:
http://highloadtools.com/progressivejpeg
Comment #13
partyka commentedThe only thing found is:
FILE: /var/www/drupal-7-pareview/pareview_temp/image_progressive.module
No
manipulation built-in to Drupal. When I found the "CONFIGURATION" section in README.txt I was left with the
opinion that this is not going to be intuitive to a new administrator, especially one who has not worked with
Drupal's image system before. I would add some text that says something to the effect of:
---
This module has no implicit configuration, it merely gives you another option when you are setting
up your image settings. When you edit an image style at admin/config/media/image-styles, you will
be given an option to add interlacing to the images. Here's how to do that:
---
I've included a patch with my suggested placement.
Just follow the fixes mentioned in the ealier comment by @valderama and I think this is a very
solid and lightweight module!
Comment #14
gisleAutomated Review
PAReview.sh (See: http://pareview.sh/pareview/httpgitdrupalorgsandboxdepresz2222075git) produced:
Please note that
stdClassis not a base class. PHP classes do not automatically inherit from any class. All classes are standalone, unless they explicitly extend another class. Best practice is to not have a type hint in place for declaration for generic classes. Just omit the type hint, and document the type using@param object $image(as you've already done).Manual Review
This sounds like a feature that already exists in the ImageAPI Optimize project.
At least there is a patch commited to support progressive images.
Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. Please clarify what your module does that is lacking in ImageAPI Optimize. You may also open an issue in the ImageAPI Optimize 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 you cannot reach the maintainer(s) please follow the abandoned project process.
If the above fails for whatever reason please get back to us and set this back to "needs review".
Comment #15
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.