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
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
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
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
43be0fdfac
added debug functin and fixed false negatives of "isURLReachable" method
2015-10-01 15:17:10 +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
5be211b209
resizing now uses right file type
2015-09-29 23:10:23 +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