Page2Images Plugin allows user to create a website thumbnail preview in the content. It can save a lot of time to take the screenshot of one page and parse it in the drupal.
The plugin requires a free or paid account from Page2Images who is the service provider. No purchase is required to use the plugin or the free service.
Core features:
Insert URL and get thumbnail preview in one second
Customize the size of the preview easily
Support different preview device included iOS phone, Android phone and tablet.
If you need know more information, here is our website thumbnail API document.
The module provides function theme_page2images_image() to request and display web pages screenshots. The theme function could be executed as follows:
<?php
$options = array(
// URL of the site.
'p2i_url' => 'http://drupal.org',
// Size of the generated screenshot.
'p2i_size' => '480x400',
);
// Return html image.
echo theme_page2images_image($options);
Page2Images Home Page:
Page2Images Git repository:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/SuzhouKada/2141867.git page2images_website_thumbnail
Manual reviews of other projects:
none yet.
The ShrinkTheWeb thumbnails module provides similar functionality and could be used as an alternative source for web page screenshots.
The PagePeeker Screenshots module provides similar functionality and could be used as an alternative source for web page screenshots.
Comment | File | Size | Author |
---|---|---|---|
#2 | page2images_drupal2.png | 15.15 KB | SuzhouKada |
#2 | page2images_drupal.png | 9.8 KB | SuzhouKada |
page2images_website_thumbnail.png | 279.57 KB | SuzhouKada |
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxSuzhouKada2141867git
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.
Comment #2
SuzhouKada CreditAttribution: SuzhouKada commentedComment #3
SuzhouKada CreditAttribution: SuzhouKada commentedComment #4
SuzhouKada CreditAttribution: SuzhouKada commentedComment #5
xiukun.zhou CreditAttribution: xiukun.zhou commentedThere is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 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. You have to get a review bonus to get a review from me.
Source: http://pareview.sh/ - PAReview.sh online service
Comment #6
barthje CreditAttribution: barthje commentedWould be handy of they are more descriptive. (Even though they probably mean $key and $value)
Comment #7
yogeshchaugule8 CreditAttribution: yogeshchaugule8 commentedIn .admin.inc file I don't find any use of including .api.inc file. You can remove it.
Rest other points are already included by @barthje.
Comment #8
SuzhouKada CreditAttribution: SuzhouKada commentedFixed bugs.
Comment #9
yogeshchaugule8 CreditAttribution: yogeshchaugule8 commentedHi SuzhouKada,
After fixing all issue, plz change the status to "needs review", so other users can view it in needs review list and review your module.
Comment #10
SuzhouKada CreditAttribution: SuzhouKada commentedComment #11
klausiRemoving review links, you have not done any manual review, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects, as requested on the review bonus page.
When you complete your manual reviews don't forget to add the "PAReview: review bonus" tag as indicated in http://drupal.org/node/1975228 , otherwise you won't show up on my high priority list.
Comment #12
xqus CreditAttribution: xqus commented* Please remove the master branch, as described here: https://drupal.org/node/1127732 in step 6.
* page2images_help(): Links should be created with l().
* theme_page2images_image(): if ($src = page2images_get_thumbnail($variables)) will always return true, as you are assigning a value to $src, this function will never return FALSE.
* page2images_admin_settings(): Description for page2images_get_account. Use a placeholder for the link, and l() to create link. See: https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/t/7
* page2images.api.inc: All of the functions here could use some more documentation. What are the parameters expected and what does it return?
Comment #13
SchnWalter CreditAttribution: SchnWalter commentedHello,
The function page2images_get_thumbnail() includes the page2images.api.inc file which changes the PHP error_reporting settings, which I'm pretty sure is not a desired effect when you try to get a website thumbnail. Please remove the following line:
error_reporting(E_ALL ^ E_NOTICE);
The PAGE2IMAGES_CACHE_DAYS and PAGE2IMAGES_RESTFUL_KEY constants are not used. And I would also suggest not defining constants by using functions, it just feels better not using these function in there: variable_get(), file_default_scheme() and file_create_url().
Also you should probably use Drupal's file handling functions. Like file_unmanaged_save_data() or file_save() or why not use a custom stream wrapper and have your 'cached' files managed by Drupal, and create a hook_cron implementation and get rid of cached images and then remove the hackish page2images_delete_catch_image().
Also at this state the module doesn't really do much, it looks like and API for an API. It would be nice if there was a field formatter for links so you can render them as images and so they can be manipulated by modules like imagecache.
Regards,
Walter S.
Comment #14
heddnComment #15
PA robot CreditAttribution: 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.