捕获和转换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")
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")
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的质量。

请注意,要使用大多数这些技术,还需要 高级套餐.