Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Greetings, thanks for this package, it's really well wrapped up and super easy to install and use! :-)
Is there a way to output larger thumbnails? Or are we stuck to this medium resolution?
Thanks!
Hi Pantelis,
You could add a with and height where you output the images from the PDF. Could it be a solution to do it like this?
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Examine="urn:Examine" xmlns:Flexit.PdfThumbnails="urn:Flexit.PdfThumbnails" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Examine Flexit.PdfThumbnails "><xsl:output method="xml" omit-xml-declaration="yes"/><xsl:param name="currentPage"/><xsl:variable name="mediaItem" select="/macro/mediaItem"/><xsl:template match="/"><xsl:if test="$mediaItem"> <xsl:variable name="pdf" select="Flexit.PdfThumbnails:GetMedia($mediaItem/File/@id,0)"/> <h2><xsl:value-of select="$pdf/@nodeName"/></h2> <a href="{$pdf/umbracoFile}">Get full PDF here</a> <xsl:for-each select="$pdf//pdfThumbnails/file" > <img src="{.}" width="800" height="500"/> </xsl:for-each></xsl:if></xsl:template></xsl:stylesheet>
Now you can specify the width and the height of the images from the PDF.
Hope this helps,
/Dennis
Hi Dennis,
Thanks for the input, but this would actually strech the image in the frontend. I'm sorry maybe I was not that clear.
This Project extends the "GetMedia" function with automatically creating thumbnails of 595x842 pixels.
I want it to generate bigger thumbnails, like 1200x1600 and then manage them with imagegen or smt similar.
595x842 is enough for most cases but smaller fonts in PDF files are not very readable.
I think 595x842 is Ghostscript's default or something like that, it seems a familiar resolution.
Is this resolution hard fixed in Flexit.PdfThumnails.dll? Can I change that somehow?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Thumbnail Size?
Greetings, thanks for this package, it's really well wrapped up and super easy to install and use! :-)
Is there a way to output larger thumbnails? Or are we stuck to this medium resolution?
Thanks!
Hi Pantelis,
You could add a with and height where you output the images from the PDF. Could it be a solution to do it like this?
Now you can specify the width and the height of the images from the PDF.
Hope this helps,
/Dennis
Hi Dennis,
Thanks for the input, but this would actually strech the image in the frontend. I'm sorry maybe I was not that clear.
This Project extends the "GetMedia" function with automatically creating thumbnails of 595x842 pixels.
I want it to generate bigger thumbnails, like 1200x1600 and then manage them with imagegen or smt similar.
595x842 is enough for most cases but smaller fonts in PDF files are not very readable.
I think 595x842 is Ghostscript's default or something like that, it seems a familiar resolution.
Is this resolution hard fixed in Flexit.PdfThumnails.dll? Can I change that somehow?
Thanks!
is working on a reply...