General
37 results found
-
add proxy server support
i'd like for all requests to come from my IP. please enable proxy server support
45 votesintegrated proxy has been added. see this doc page for details on usage: https://phantomjscloud.com/docs/http-api/interfaces/ipagerequest.html#proxy
and this for examples: https://phantomjscloud.com/docs/http-api/#proxy-examples
-
allow rendering of thumbnails, not just full-size screenshots
allow taking a full-size screenshot (ex 1280x720) but return a thumbnail of that to the user.
18 votesthis has been implemented, for example, see the “Image: Render page as thumbnail” example in the http endpoint docs: https://phantomjscloud.com/docs/http-api/
here is the actual example request: https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request={url:%22http://www.example.com/%22,renderType:%22jpeg%22,renderSettings:{viewport:{width:640,height:500},clipRectangle:{width:640,height:500},zoomFactor:0.45}}
-
Adjustable JPEG quality
Add parameter for adjusting JPEG quality, so we won't have to re-compress the file ourselves
15 votesyou can try this feature out at http://stage2.phantomjscloud.com stage2 will replace the current system in the coming months.
-
Specify phantomJS version in request
I'm running into some JS issues with the older phantomJS version, which should have been fixed in version 2.0. Version 2 is still unstable, but I would like to try it instead of the latest stable version (1.9.8). It would be great if one could specify whether to use stable or latest version in the API request.
7 votescan choose between phantomjs 2.1.1 and 2.5b. will add other backends (chrome and firefox, not phantom) in the future.
-
create a tutorial / examples section (maybe on github?)
because it's hard to know how to do stuff in my programming language.
5 votes -
I would like to use your service, but it doesn't support web fonts!
Phantom 2.0 is still not released, but I really need it! It supports google fonts and evrth seems to be ok...
4 votesservice now uses phantomjs v2, which includes webfont support.
UPDATE: much better improved webfont support on our Stage2 system! you can try this feature out at http://stage2.phantomjscloud.com stage2 will replace the current system in the coming months.
-
https api support?
I want to use your service, but my site runs over https too, and your api call breaks my security.
Do you have, or are you planning to support your api calls over https too?4 votesin next version to be deployed in next few days
-
Enable early access to PhantomJS 2.0
Enable early access to PhantomJS 2.0.
Phantom 2.0 is still not released, but there are some early versions circling around in the community. Would I be possible to
The reason why I want PhantomJS 2.0 is because it supports the final version of the WebSockets standards, so that it can take snapshots of sites that uses websocket instead of traditional ajax requests.
4 votesservice now uses phantomjs v2
UPDATE: much better improved phantomjs2 support on our Stage2 system! you can try this feature out at http://stage2.phantomjscloud.com stage2 will replace the current system in the coming months.
-
Option to select CSS @media type
This appears to be inconsistent across PhantomJS versions, so being able to force 'print' or 'screen' media type would be useful.
4 votesyou can set media type.
see: https://phantomjscloud.com/docs/http-api/interfaces/irendersettings.html#emulatemedia
please email me if you need help.
-
iframes do not return url
this is a bug in phantomjs 1.x , however a workaround is described here: https://groups.google.com/forum/#!msg/phantomjs/J7PQFe2gLec/8rnf-H_xgmoJ
3 votes -
Allow access to the pageSize variable
I want to be able to do something like this:
page.paperSize = {
format: "Letter",
orientation: "portrait",
margin: {left:"2.5cm", right:"2.5cm", top:"1cm", bottom:"1cm"},
footer: {
height: "0.9cm",
contents: phantom.callback(function(pageNum, numPages) {
return "<div style='text-align:center;'><small>" + pageNum +
" / " + numPages + "</small></div>";
})
}
};It doesn't seem like I can do that with your API.
3 votessee docs page for how to set header/footers
-
make injected scripts easier to use
right now i need to have a .js file on a webserver to use this. please make it easier.
3 votessee oageRequest.execScripts
-
3 votes
see pageRequest.targetContent
-
Better rendering of Screenshots (Thumbnails, Crop, etc)
Here’s how to do the cropping and support the height parameter, and, in the process make your thumbnails smaller (by using .png’s, and not .jpg's, which are much bigger and don’t look as good as .png’s), and cut down on bandwidth and storage costs.
http://www.cambus.net/creating-thumbnails-using-phantomjs-and-imagemagick
Cropping will not add to your processing costs, but you should be aware that compression will. However, this is a cost that everybody using PhantomJS for thumbnails must bear.
There is one other thing that you should be doing with your thumbnail API: which is to allow specification of both the source viewport and the…
2 votessee doc page for render rectangle
-
Add CORS headers to your endpoints
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
I want to use to call your endpoints directly from javascript on a web page.
I'm building a canvas based application and I want to be able to draw html onto it without proxying it through my own server.
2 votesdone. see docs here: http://api.phantomjscloud.com
-
Add fine control of JSON output verbosity
I would like to output JSON only including my request + rendered Content, none of the resource data that's currently included.
2 votesverbosity low by default. see json output for how to increase verbosity.
-
we are having troubles with font support. all fonts are rendered as verdana. is there a reason for that? something wrong that we are doing?
hey, we are having troubles with font support. all fonts are rendered as verdana. is there a reason for that? something wrong that we are doing?
2 votesi think this has been fixed (oct 30) with the update to our new backend. submit a new issue if it’s not.
-
Enable directly writing phantomjs script instead of just injecting JS to the page
Currently the inject script function is just injecting the javascript into the webpage. Is it possible I can write my own phantom js script?
I want to do some page migration and in the process some login is needed. It would be great if I can inject casperjs script into the current phantomjs. I also need to do some checking before knowing which page to take the screenshot. Inject into the webpage is not enough for this. I need higher level control.
2 votesnot phantomjs script, but puppeteer script.
See the new Automation API: https://phantomjscloud.com/docs/http-api/automation
-
Render an specific element and children (via cropping)
I'd like to be able to use a selector to return just the content within a specific HTML element. The goal for me personally is to allow users the ability to render specific elements to help establish structured information and share information about a specific element via an image.
2 votesthis has been available for some time. for example, this: https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request=%7Burl:%22http://localhost/examples/corpus/flower.png%22,renderType:%22png%22,renderSettings:%7Bselector:%22img%22%7D%7D
Please see the docs regarding renderSettings. email support@phantomjscloud.com if you still need assistance.
-
make loading of lazy load (AJAX ) content easier
right now I need to use injected scripts and/or set a timeout to get all the ajax content
2 votesUPDATE: much better improved webfont support on our Stage2 system! you can try this feature out at http://stage2.phantomjscloud.com stage2 will replace the current system in the coming months.
- Don't see your idea?