- Name:
IIP Image - Description:
This module provides integration of IIPImage to Drupal + proper image converting.
Read about IIPImage here: http://iipimage.sourceforge.net/My project creates a image field with a custom widget and formatter that provide TIFF image extension support, converting process and validation. Converting settings also made available in settings.
An uploaded user's image goes through certain convert process and passes to IIP Server mod, which displays the image in Lightbox.
Also provided custom thumbnail creating for uploaded images with an adjustable settings. -
Link to a sandbox project:
http://drupal.org/sandbox/barbun/1286086 -
Git repository link:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/barbun/1286086.git iip_image cd iip_image - For Drupal 7 use.
I haven't seen any similar modules before.
I'm a newbie at Drupal, at the moment i have 2 month of experience in it but my steps are confident and balanced.
I have already posted a patch for Menutrails module that port it to Drupal 7 ( http://drupal.org/node/940206 , post #25), and also
patch for lightbox (http://drupal.org/node/1287270)
Thank you!
My best,
ROMAN
Comments
Comment #1
patrickd commentedPlease do not push into the master branch, follow the instructions on naming conventions here:
http://drupal.org/node/1015226, git branching: http://drupal.org/node/1066342
Some issues can be detected by the coder module (http://drupal.org/project/coder)
(Be shure to set it to "minor (most)")
remove
; $Id$line.This is deprecated since drupal.org is using git
also remove the last three lines of your info:
version will be added automatically on release and you set the core twice
Please remove the LICENSE.txt it will be added automatically when you create a release.
regards
Comment #2
barbun commentedThank you, Patrick!
I fixed all you mentioned.
Comment #3
klausiComment #3.0
klausiChanged git clone path due to created new release branch
Comment #4
barbun commentedVielen Dank, Klaus)
Sorry, it took that long to fix problems, i was really busy with my work projects.
Concerning javascript includes in image_iip_page(), yes it has to be like that, because there's a special page. In other case it won't work.
My best,
ROMAN
Comment #5
Robertas commentedThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
Review of the 7.x-1.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. Get a review bonus and we will come back to your application sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #6
barbun commentedThanks, Robertas!
Cleaned it, but still i have these two lives:
The lines are:
If i break the line to make it less than 80 characters in a line it looks really awful and less understandable. So i left it like that, hope it's not a big deal. If it is - ok, i will adjust it.
My best,
ROMAN
Comment #7
barbun commentedThanks, Robertas!
Cleaned it, but still i have these two lines:
The lines are:
If i break the line to make it less than 80 characters in a line it looks really awful and less understandable. So i left it like that, hope it's not a big deal. If it is - ok, i will adjust it.
My best,
ROMAN
Comment #8
targoo commentedHi
Maybe you need to add in your readme.txt that the module will only work for public filesystems.
I leave it to 'needs review'.
Good work by the way !
Comment #9
barbun commentedThanks, David!
Yes, it's still TO-DO to make it work also with private filesystems. Would be an awesome feature, i suppose.
Comment #10
prashantgoel commentedThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
Review of the 7.x-1.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. Get a review bonus and we will come back to your application sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #11
patrickd commenteddon't block deeper reviews because of these few minor issues found by automated tools
Comment #12
barbun commentedThanks, master branch is cleaned.
As for Drupal Code Sniffer, I've mentioned that in my post #7. It breaks the readability of the code if I break those lines.
I don't know if it is a MUST or not, so I just left it like that.
If somebody can tell me for sure should I break those lines or not, I would be really thankful:)
Comment #13
patrickd commentedmost coding standarts are suggestions, you must not follow all of them perfectly, but whenever possible
Comment #14
donatasp commentedManual review
If you're not using image styles, you should not put thumbnails in that directory and use your own. Or you could remove _iip_image_resize() altogether. See next point.
You're using _iip_image_resize() to create preview thumbnail in advance, but this is not necessary. You can use theme('image_style') to generate thumbnail. This would include use of 'preview_image_style' which is defined in iip_image_field_widget_info(), but currently not used.
This is not necessary in a lot of places where Drupal core functions are used, because those are already aware of streams. I might be wrong, but I believe there is only one place where real path is required and that is when passing file path to IIP server. This is also required for _imagemagick_convert_exec(), but I suggest you use _imagemagick_convert() to remove the need to do so.
if (isset($link_file))guards against not-existent variable.When
$instance['settings']['file_directory']is defined, assignment insideif ($instance['settings']['file_directory'])produces wrong absolute path if field is configured to display original (not styled) image. This might be potential security risk.Comment #15
denix commentedHi Roman,
I'm Denis, one of the IIPImage maintainers. Thanks for the great work, I use Drupal a lot, but I would never had the time to create a module!
If you agree we can get in touch,
best regards,
Denis
Comment #16
barbun commentedHi, Denis!
I made you a maintainer for this project! Thank you!
Comment #17
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #17.0
klausiRemoved any mentioned CCK words.