Bevor die Qualität einer Aufnahme beurteilt wird, muss klargestellt werden, dass die Aufnahmesoftware von GrabzIt auf Chromium basiert. Wenn also die URL oder der HTML-Code in Chrome nicht gut dargestellt wird, wird sie nicht gut erfasst.
Bildaufnahmen verwenden standardmäßig JPG, das standardmäßig eine Komprimierung von 90 % verwendet, um eine geringere Qualität, aber eine kleinere Bildgröße zu erzielen. Um die Qualität zu verbessern, müssen Sie entweder das Bildformat in ein anderes als das Standard-JPG ändern, z. B. PNG, was ein gutes Gleichgewicht zwischen Komprimierung und Qualität bietet. Oder behalten Sie das JPG-Format bei und setzen Sie den Qualitätsparameter auf 100, wie unten gezeigt, obwohl dies die Dateigröße erhöht.
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.5.2/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?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")
Ein weiteres potenzielles Qualitätsproblem kann durch die Skalierung des Screenshots verursacht werden. Dies bedeutet, dass die Bildgröße im Verhältnis zur Größe des Browsers vergrößert oder verkleinert wird. Obwohl wir die besten Skalierungsalgorithmen verwenden, kann die Qualität dennoch beeinträchtigt werden, was häufig darauf zurückzuführen ist Der Entwickler wählt falsche Skalierungsverhältnisse für das Bild.
Wenn Sie PR möchtenint Bei einem Bild gilt: Je größer die Bildabmessungen, desto höher die Qualität des BildesintHrsg. Um dies zu tun, ohne das Bild zu strecken, kann GrabzIt erstellen hochauflösende Bilder Hier wurden die Bilder gezoomt, um mehr Details zu bieten.
Die Qualität der in DOCX gespeicherten Bilder kann verbessert werden, indem Sie den Qualitätsparameter für den Dokumenttyp festlegen, den Sie konvertieren. Das folgende Beispiel zeigt, wie Sie die Qualität eines DOCX auf 100 festlegen.
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.5.2/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?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")
Von GrabzIt generierte PDFs verwenden standardmäßig die beste Komprimierung, die sicherstellt, dass ein PDF ohne Qualitätsverlust komprimiert wird. Ein Qualitätswert von weniger als 50 führt jedoch dazu, dass GrabzIt das PDF vollständig komprimiert.
Sie können die Qualität animierter GIFs auch verbessern, indem Sie den Qualitätsparameter zusätzlich auf 100 setzen Erhöhen der Bildrate wird auch die Qualität des GIF verbessern.
Beachten Sie, dass für die Verwendung der meisten dieser Techniken auch eine erforderlich ist Premium Paket.