Producing perfect images for the catalog

Are you responsible for making OMP work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
stefan
Posts: 81
Joined: Wed Feb 06, 2013 1:49 pm

Producing perfect images for the catalog

Postby stefan » Tue Dec 03, 2013 12:08 pm

Hi,

Do you have any recommendations for producing catalog images? What is the perfect size?

I experimented with

convert tmp.pdf\[0\] -resize 204x -background white -alpha remove cover.jpg

and simply

convert tmp.pdf\[0\] cover.jpg

where tmp.pdf is the book, but both look horrible.

The white color of the title is blurred.

This is what we have:

http://langsci-press.org/catalog/book/16

There could be an option (or default) to take the first page of a book.

Best wishes

Stefan

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: Producing perfect images for the catalog

Postby asmecher » Tue Dec 03, 2013 5:22 pm

Hi Stefan,

I don't think most servers will have the toolset on hand to generate cover images from PDFs, though I agree it would be a useful addition for those with the ghostscript toolset. I see quite a bit of jpeg artifacting in that image; you might try increasing the jpeg image quality to see if that improves the situation. Alternately, you could try using PNG files, which will do a better job of reproducing text.

Regards,
Alec Smecher
Public Knowledge Project Team

stefan
Posts: 81
Joined: Wed Feb 06, 2013 1:49 pm

Re: Producing perfect images for the catalog

Postby stefan » Wed Dec 04, 2013 4:05 am

Hi,

Ah, now I understand: You do not do any scaling at all. It is just the picture I put there and the browser does the scaling. I users click the image, they get the full image. So I should put a large image into the catalog.

Thanks for clarifying.

Best

Stefan

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: Producing perfect images for the catalog

Postby asmecher » Wed Dec 04, 2013 10:17 am

Hi Stefan,

That's true for the "full-sized" image, which appears on the book's page. However, OMP does generate the thumbnail that goes into the main catalog list; that code is in controllers/tab/catalogEntry/form/CatalogEntryCatalogMetadataForm.inc.php. If you follow the same rough aspect ratio as the default book image, you should be OK for the book view; the catalog thumbnail will be generated to suit.

Regards,
Alec Smecher
Public Knowledge Project Team


Return to “OMP Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests
https://pkp.sfu.ca/support/forum/viewtopic.php?p=43148
pkp.sfu.ca
crawl=CC-MAIN-2016-44
28569
application/http; msgtype=response
sha1:U3YUSFCDLSQZJW4Q4GAO3YPIVXSBQQYN
<urn:uuid:46ee5fc6-b4e1-4a21-9061-b0147a417323>
2016-10-20T19:54:50Z
142.58.129.159
sha1:MTGPYAFB6DEDNVDTZ2ZC2YOLO3TGM4SX
<urn:uuid:54dde9bc-06d5-4fc7-bc23-0553e837a408>
https://pkp.sfu.ca/support/forum/viewtopic.php?p=43148
length
response
<urn:uuid:c877d33f-4864-4a26-8c4b-31fb1a73bd0f>
robots: classic
hostname: ip-10-171-6-4.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-44
operator: CommonCrawl Admin
description: Wide crawl of the web for October 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf