捕獲和轉換Web的工具

您如何提高網絡捕獲的質量?

在判斷捕獲的質量之前,必須明確GrabzIt的捕獲軟件基於Chromium,因此,如果URL或HTML在Chrome中的呈現效果不佳,就無法很好地捕獲它。

圖像質量

默認情況下,圖像捕獲使用JPG,默認情況下使用85%壓縮來降低質量,但圖像尺寸較小。 為了提高質量,您需要將圖像格式更改為默認JPG以外的其他格式,例如PNG,這樣可以很好地兼顧壓縮和質量。 或保持JPG格式並將質量參數設置為100,如下所示,儘管這會增加文件大小。

ImageOptions options = new ImageOptions();
options.Quality = 100;

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.Save("http://www.mywebsite.com/Home/Handler");
ImageOptions options = new ImageOptions();
options.setQuality(100);

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.Save("http://www.mywebsite.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.4.7/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com", 
{"quality":100}).Create();
</script>
var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_image("http://www.spacex.com", {"quality":100});
client.save("http://www.example.com/handler", function (error, id){
    if (error != null){
        throw error;
    }
});
$options = GrabzItImageOptions->new();
$options->quality(100);

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->Save("http://www.mywebsite.com/handler.pl");
$options = new \GrabzIt\GrabzItImageOptions();
$options->setQuality(100);

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->Save("http://www.mywebsite.com/handler.php");
options = GrabzItImageOptions.GrabzItImageOptions()
options.quality = 100

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToImage("http://www.spacex.com", options)
grabzIt.Save("http://www.mywebsite.com/handler.py")
https://api.grabz.it/services/convert.ashx?key=Sign in to view your Application Key&format=jpg&quality=100&url=https%3A%2F%2Fspacex.com%2F
options = GrabzIt::ImageOptions.new()
options.quality = 100

grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.url_to_image("http://www.spacex.com", options)
grabzIt.save("http://www.mywebsite.com/handler/index")

縮放屏幕截圖可能會導致另一個潛在的質量問題。 這意味著相對於瀏覽器大小增加或減小圖像大小。 雖然我們使用最佳的縮放算法,但仍然可以實現質量,這通常是由於 開發人員為圖像選擇了錯誤的縮放比例.

圖像打印int 真誠

如果你想公關int 圖像越大,圖像尺寸越大,圖像質量越高inted。 為此,無需拉伸圖像GrabzIt可以創建 高清晰圖像 縮放圖像以提供更多細節。

DOCX質量

可以通過為要轉換的文檔類型設置質量參數來提高DOCX中存儲的圖像的質量,以下示例顯示瞭如何將DOCX的質量設置為100。

DOCXOptions options = new DOCXOptions();
options.Quality = 100;

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToDOCX("http://www.spacex.com", options);
grabzIt.Save("http://www.mywebsite.com/Home/Handler");
DOCXOptions options = new DOCXOptions();
options.setQuality(100);

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToPDF("http://www.spacex.com", options);
grabzIt.Save("http://www.mywebsite.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.4.7/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com", 
{"quality":100,"format":"docx"}).Create();
</script>
var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_docx("http://www.spacex.com", {"quality":100});
client.save("http://www.example.com/handler", function (error, id){
    if (error != null){
        throw error;
    }
});
$options = GrabzItDOCXOptions->new();
$options->quality(100);

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToDOCX("http://www.spacex.com", $options);
$grabzIt->Save("http://www.mywebsite.com/handler.pl");
$options = new \GrabzIt\GrabzItDOCXOptions();
$options->setQuality(100);

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToDOCX("http://www.spacex.com", $options);
$grabzIt->Save("http://www.mywebsite.com/handler.php");
options = GrabzItDOCXOptions.GrabzItDOCXOptions()
options.quality = 100

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToDOCX("http://www.spacex.com", options)
grabzIt.Save("http://www.mywebsite.com/handler.py")
https://api.grabz.it/services/convert.ashx?key=Sign in to view your Application Key&format=docx&quality=100&url=https%3A%2F%2Fspacex.com%2F
options = GrabzIt::DOCXOptions.new()
options.quality = 100

grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.url_to_docx("http://www.spacex.com", options)
grabzIt.save("http://www.mywebsite.com/handler/index")

PDF質量

默認情況下,GrabzIt生成的PDF使用最佳壓縮,可確保壓縮PDF而不損失質量。 但是,小於50的質量值將導致GrabzIt完全壓縮PDF。

GIF動畫質量

您還可以通過將quality參數設置為100來提高Animated GIF的質量。 增加幀率 也將提高GIF的質量。

請注意,要使用大多數這些技術,還需要 高級套餐.