53 Commits

Author SHA1 Message Date
52df764d44 added phantomjs binary 2016-11-20 23:23:27 +01:00
Christian Haschek
4e164c82a9 Merge pull request #11 from chpwssn/master
Catch when cURL can't connect to webserver
2016-08-30 09:20:10 +02:00
Chip Wasson
03b72c9198 Catch When cURL can't connect to webserver
If a domain is invalid or a web server is down, cURL will return false
and not have a status code. We need to catch it and distinguish the
difference between page not found and cannot connect for the user.
2016-08-29 21:52:28 -06:00
Christian Haschek
77f2a2651c Merge pull request #10 from chpwssn/master
Add Content-Disposition to make saving images cleaner
2016-08-29 19:38:03 +02:00
Chip Wasson
6c1aaeae2a Chrome Won't Infer File Extension
Add a file extension since the Chrome version I tested didn’t infer the
file extension.
2016-08-29 11:22:36 -06:00
Chip Wasson
745b9cc692 Add Content-Disposition to make saving images cleaner
When a user tries to save a file from the browser, make the filename
the url they entered so they don’t have to type it again.
2016-08-29 11:08:12 -06:00
Christian Haschek
4abd000917 Merge pull request #7 from luckyjay/master
Change to PNG as default output
2016-01-10 17:39:17 +01:00
luckyjay
2a1452c9f2 Change to PNG as default output
I encountered a number of large web pages that would not render as jpg. Switching to png made them work. Suggest to make png the default now.
2016-01-10 11:28:35 -05:00
Christian Haschek
102b39235d Merge pull request #6 from luckyjay/master
Remove clipRect setting to fix rendering
2016-01-10 12:11:48 +01:00
Christian Haschek
62392ad181 Merge pull request #5 from luckyjay/patch-1
Removed exit command from renderPagePHANTOMJS()
2016-01-10 12:11:28 +01:00
luckyjay
d63cee86a6 Update http2pic.class.php 2016-01-10 02:07:06 -05:00
luckyjay
84bad66c6a Update http2pic.class.php 2016-01-10 01:25:06 -05:00
luckyjay
fd553e72ea Change curl opts to improve reachable test
isURLReachable would fail for certain sites, such as Amazon.com. Removing NOBODY and adding RETURNTRANSFER solved the issue for me.
2016-01-10 01:09:57 -05:00
luckyjay
6fefefdfb5 Update http2pic.class.php 2016-01-09 23:52:12 -05:00
luckyjay
19700ca6da Remove clipRect setting to fix rendering
It seems the clipRect setting was preventing phantom from rendering anything. I think after this and my previous pull request, phantomJS is working now.
2016-01-09 23:49:37 -05:00
luckyjay
3c0d2b20b9 Removed exit command from renderPagePHANTOMJS()
Assume  this was a complete mistake and needed to be removed - phantomjs render would never work since the function would exit before running the phantomjs command.
2016-01-09 22:31:03 -05:00
8c446b794d so the debug file (if exists) won't be visible to everyone 2015-10-03 18:47:05 +02:00
d9e70e5abd phantom render script 2015-10-01 15:36:32 +02:00
98667473d8 fixed caching and removed faulty type variable 2015-10-01 15:17:30 +02:00
43be0fdfac added debug functin and fixed false negatives of "isURLReachable" method 2015-10-01 15:17:10 +02:00
2c06b8d90e moved lines around so they make more sense 2015-09-30 11:07:03 +02:00
9d8d779ef1 added phantomjs stuff 2015-09-30 00:47:36 +02:00
0b5c98ee54 added experimental support for phantomjs as rendering engine. Should work but I couldn't test it yet 2015-09-30 00:47:03 +02:00
2ef269fb87 fixed variable change 2015-09-30 00:46:14 +02:00
eeb9e6d1d1 added upgrade info 2015-09-29 23:12:18 +02:00
5be211b209 resizing now uses right file type 2015-09-29 23:10:23 +02:00
5e2248cd04 This project is now officially released under the Apache License 2015-09-29 19:54:21 +02:00
8744bad966 added curl as dependency 2015-09-29 19:50:32 +02:00
f926d5bb15 http2pic class with several editable options. Code is prepared for changing of rendering engines although at the moment only wkhtmltoimage is supported 2015-09-29 19:49:21 +02:00
b630fcd6b6 api.php updated so it just calls the http2pic class 2015-09-29 19:38:20 +02:00
chrisiaut
627a640bde Merge pull request #2 from danbovey/master
Switched to jQuery event handlers
2015-09-28 21:15:24 +02:00
Dan Bovey
a1dfdf789c Remove url prefix 2015-09-28 19:31:17 +01:00
Dan Bovey
dad5188e19 Switched to jQuery event handlers 2015-09-28 19:11:48 +01:00
chrisiaut
c50ac9e462 Merge pull request #1 from lekoaf/master
Cleanup
2015-09-28 17:05:11 +02:00
Martin Trobäck
dca7348b4e Further increase in readability 2015-09-28 16:54:29 +02:00
Martin Trobäck
8aeda2e482 Increased readability 2015-09-28 16:46:34 +02:00
65113d7131 added download link 2015-09-28 16:23:12 +02:00
eceaec3df9 fixed messedup filename for non-cached images 2015-09-28 16:02:20 +02:00
a51de98781 if the user didn't specify the cache id, we'll delete the image and not keep it 2015-09-28 15:56:04 +02:00
193cf828c2 Opengraph goodnes 2015-09-28 15:37:52 +02:00
b216bf11c8 added php example 2015-09-28 15:23:50 +02:00
c19829233a Adding cache folder if nto exist 2015-09-28 15:21:43 +02:00
ef5d967aa5 added how to use section 2015-09-28 15:21:26 +02:00
deb51373ad added github fork link 2015-09-28 11:36:42 +02:00
9cc7c1704d safer input 2015-09-28 11:36:29 +02:00
28daf463d1 final 2015-09-28 01:02:32 +02:00
6cfccc99a1 Readme got even better 2015-09-28 01:01:50 +02:00
16bc00bb48 better readme 2015-09-28 01:00:27 +02:00
ea39fea3c3 readme :D 2015-09-28 00:58:41 +02:00
d1a27d0d1a don't need that anymore 2015-09-28 00:53:50 +02:00