Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Mar 2013 at 17:06 UTC
Updated:
7 Sep 2025 at 13:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
luco commented@jeffstric I tried your demonstration. the resizing is pretty straightforward.
however, I found some usability problems:
finally, I'm not sure the fields should be glued to the frame like that. did you customize the CSS?
anyway I'll install the module in a couple of days and let you know if it works in my setup... in the meantime, review your code here: http://ventral.org.
good luck!
cheers,
Luciano
PS.: I like the cat Nicholas Cage :)
Comment #2
jeffstric commentedReally thank you , I will fix the problem in this week.
Ps:
1 due to i use imagettftext() ,the y is the fifth param, the y position of the fonts baseline, not the very bottom of the character.
I will add this hint to user.
2 button cumstom now is used to set width and height of resize area, but the value of input is confused.
Comment #3
jeffstric commentedfixed the bugs report,and solve the fonts disappear bugs,welcome to my Demonstration
Comment #4
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxjeffstric1937132git
We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
Comment #5
luco commentedok, it's looking much better now.
I finally understood what the apply button does in the first step, where users can type width and height - now it's clear that it's related to the textfields, but you could make that fieldset collapsible just in case.
there's some spelling errors, and your text is somewhat technical. try changing "color must be string with six character" to "please use six letters or numbers to describe your colour", for example.
also it'd be nice (if possible) if the input color field accepted uppercase letters and strings with three characters, like FFF which is the same as ffffff.
there's not a measure for text size yet (pt, px etc).
and though it's more of a look and feel type of thing, I think it'd look better if you checked the layout. some elements are glued to the margins. please see the attached image.
Comment #6
jeffstric commentedFix the layout and color input problem,however so many error in http://ventral.org/pareview/httpgitdrupalorgsandboxjeffstric1937132git-7x-2x,It is compulsive to obey?
Comment #7
luco commented@jeffstric, I'm pretty sure reviewers will tell you to fix those errors.
you must follow Drupal coding standards because that's how other people will be able to understand your code in the future (and how you will understand theirs).
but your module works just fine! fix the issues in the automated review and don't give up! :)
Comment #8
jeffstric commentedOK! Continue tomorrow.
Comment #9
jeffstric commentedFix the code standard problem,except:
code:
review:
review:
290 | ERROR | unlink() is a function name alias, use domxml_unlink_node()I disappear for three days until next Monday.
Comment #10
luco commentedgood job! I saw how big that list was before. I think you can change to needs review; I'll do that for you.
please note, it could be a couple of days until official reviewers go over your module.
meanwhile, you might want to consider evaluating other developers' code as per the PAReview bonus program.
please read the directions there, choose other projects that you feel comfortable reviewing, and help fellow developers turn their sandbox projects into full-scale modules. that'll help speed up your own review process.
cheers
Comment #11
jeffstric commentedI back today, thank for your suggest,I'll choose some project to review.
Comment #11.0
jeffstric commentedclear git link
Comment #11.1
jeffstric commentedwhy a more h2 tag?
Comment #11.2
jeffstric commentedremove Issue Summary
Comment #11.3
jeffstric commentedstill have problem
Comment #12
likebtn commented1. imageFactory.info:
- What about capitalizing the first letter of the module name, it would look better in Drupal Module list:
name = Smarter image factory2. README.txt: the file looks like a mess now:)
- extra lines:
- wrong comma placement:
resize ,add- first letter should be capitalized:
3. imageFactory.module:
- imageFactory_menu(): use t() for titles and descriptions.
Comment #13
jeffstric commentedThank you,I fix the problem.
But Do not use t() in hook_menu().^^
Comment #14
jongagne commentedRecommendations
Comment #14.0
jongagne commenteda more other review
Comment #15
jeffstric commentedThanks very much. Recently I'm so busy , so there are some delay to reply you.
Grey tint will block select area,so I add a grey border to help users to distinguish.
Any problem ,please contact me .Cheer! :)
Comment #16
jeffstric commentedStill need review.
Comment #17
pagolo commentedComment #18
jeffstric commentedI will disappear for three days , welcome to report any problems, I enjoy it!
Comment #18.0
jeffstric commentedmore review
Comment #19
pagolo commentedNo need to use t() when you implement hook_menu...
Otherwise you can use t() format feature, for example
drupal_set_message(t('Delete image: !file success', array( '!file' => $file->filename)));
file image_factory_form.inc line 222
Comment #20
dimitrov.adrian commentedSome suggestion about usability. I think that if you using input type number or dropdown for size, size, angle will be better than now, also may be some predefined values will be good idea too. Other the color selecting tool doesn't work, i suppose when clicking and choising a color should be populated.
You should have to use t() instead pure messages.
Comment #21
jeffstric commentedThank you ! I have changed all messages in function drupal_set_message.
Comment #22
jeffstric commentedHi , dimitrov.adrian:
1 What's the mean of "input type number"? I only know input's type has 'text' 'select' etc ...
2 If the size is dropdown, the dropdown will be very long .
3 predefined values: yeah, it's good idea ,I apply it in angle and colour field.
4 color selecting tool doesn't work: maybe you ignore the submit button of color picker. However , most off people do like you, so I change the solution : the color input will change with color picker,even you doesn't click submit button.
Thanks for you Good suggests!
Comment #23
jeffstric commentedAdd tag review bonus.
Note:
Please ignore the following errors in PAReview.sh.
1 | ERROR | Expected 1 space after ">"; 0 found.
PAReview.sh mistake Shift Arithmetic Right as two single angle bracket.
2 unlink() is a function name alias, use domxml_unlink_node()
What's function named 'domxml_unlink_node' , I think that's bug in PAReview.sh?
Welcome to report any problems! :)
Comment #24
nsuit commentedGreat idea for a module! I think it will be very useful for in-place photo editing as opposed to having to use a separate application.
Here are some more usability suggestions:
Comment #25
nsuit commentedForgot to set this to needs work.
Comment #26
luco commentedhi @nsuit, I aggree with your suggestions for @jeffstric, except that a combo box field might be a little too much. we, beginner module developers, have enough on our plate as it is ;) but I would ask him to consider this as a future feature.
@jeffstric, maybe you could add a help page explaining users how to work the color picker?
also, I took the liberty of reviewing the text on your project page. here you go:
sorry for my absence... I've been busy working on my module :)
cheers
Comment #27
jeffstric commentedHi nsuit:
Sorry for a few days' delay to reply you suggests.I am very busy recently.
About "drag the circle around",I add basic usage in document.
About "default color",I set "405985" as default colour,which allow white circle in the middle of select area.
About "The circle was kind of hidden in a corner and hard to see" you can ignore the corner circle which is used to submit the colour , because the colour field's value will change when you drag the circle in colour choose area.
Welcome to report any problems.Thank you! :)
Comment #28
jeffstric commented@luco:Thank you , I am glad to apply your suggests.
1 About "could add a help page explaining users how to work the color picker",
I add basic usage of color picker.
2 The text on project page.
Thanks to help me correct it. It's very specific. I have applied your suggests. :)
Comment #29
klausiReview of the 7.x-2.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #30
jeffstric commentedSorry for forgetting to check code standard in PAReview.sh.
1 I remove the color picker, now the module will use color picker in libraries.
2 done!
3 Thank you , it's very important suggestion! done.
4 done!
Thanks to reply.
Comment #31
klausiSorry for the delay. Make sure to review more project applications and get a new review bonus and this will get finished faster.
Review of the 7.x-2.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Comment #32
jeffstric commentedSorry for long time delay.
I spend a week to change in this module. Now , module use drupal's form ajax property to avoid CSRF exploits and split javascript code in separate files.
Welcome to give any suggests.
Comment #33
jeffstric commentedWhen I test in other server find a problem, but it's too late now, I will fix tomorrow. Stop review for a day.
Comment #33.0
jeffstric commentedChange demo url
Comment #34
jeffstric commentedSolve the problem,need review now!demo
Comment #35
kscheirerThis is a weird default value:
$clear_time_last = variable_get('image_factory_cron_time', 'sites/default/files');shouldn't the default be a time() or 0 instead?In image_factory_image_list() you have 2 queries using like - db_query() thinks % is an escape character, so you need to use %% instead.
In image_factory_image_edit_form() you can use range() and drupal_map_assoc() functions to generate the option list in a cleaner manner.
You could probably put all your drupal include files in a single includes/ directory if that's easier. And some cleanup like using drupal_add_js() instead of putting js directly into your template file is a good idea.
But none of these are blockers, looks like a useful module.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #36
jeffstric commentedDeal kscheirer:
Thanks fro your reply and sorry for delay.
to solve, because the double '%' looks very strange.
2 A question:There is a js script in template file. However if I use drupal_add_js function,I have to put a js in php file(The reason of couldn't load external file is that I need transfer a variable to js), It looks very strange in my view. So I don't want to change it.
If there is any question and suggest, please tell me ^^.
Comment #37
jeffstric commentedOK , I put all my drupal include files in a single includes/ directory .
Comment #38
klausiSorry for the delay. Make sure to review more project applications and get a new review bonus and this will get finished faster.
Review of the 7.x-2.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Usage of $form_state['input'] is almost a blocker, but I cannot see how it could be exploited in this case, so it is not a security issue. Please fix it anyway.
Thanks for your contribution, jeffstric!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #39
luco commentedyaaay! congrats!
Comment #40
jeffstric commentedDeal klausi:
Thanks your comments and support,I solve the problems except No.2 and No.3,the reason is below.
$result_public = imagepng($im, 'public://image_factory/test.png');//FALSE
$result_absolute = imagepng($im, '/home/jeffstric/www/drupal/sites/default/files/image_factory/test.png');//TRUE
"public://" uri doesn't work in imagepng ,imagejepg and imagegif , I have to use absolute path in server
If you have any solution , please tell me.
Comment #41
jeffstric commentedThank you , luco, and thanks to all, I'm glad to finish the review.
Comment #42.0
(not verified) commentedChange demo link
Comment #43
avpaderno