PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 12th, 2009, 11:25 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
Blurry uniform squared thumbnails

For my project I like to use uniform squared thumbnails. To do so I have set the uniform thumbnail feature to yes with both the Uniform thumbnail height and width set to 164 pixels. The issue is that Photopost makes okay thumbnails from vertical orientated images, but the thumbnails cropped from horizontal images are very blurry. You can see an example here. The first one (Legacy) is based on a horizontal image, the second one (2215) on a vertical one. Anyone knows what causes this and how to solve it?
Jan Klerks is offline   Reply With Quote
Old July 12th, 2009, 12:18 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
What happens if you use the default Image sizes in the uniform thumbnails of 120x78? Are they okay.

Its a feature only available to imagemagick and I believe the formats must be like 120x78 or something similar like 180x156
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 12th, 2009, 01:10 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
120 (width) x 78 (height) looks fine, the other way around looks very blurry. (see here. But I'm not interested in 120 x 78. Plogger has the a feature to use squared cropped images and these thumbnails come out nice, no matter what the size or orientation of the original image is so I don't think it's an ImageMagik issue. I also think it would be very odd if that feature would only work for a 120 x 78 setting. It seems like photopost crops the image to something smaller than the values set and just blows it up in order to get to that size when the orientation of the source image is a landscape one. Odd that it work's okay for a portrait image by the way, what can you make of that?
Jan Klerks is offline   Reply With Quote
Old July 12th, 2009, 01:25 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
The command we use is right off the imagemagick site. Not the cropped uniform thumbs can only be used with Imagemagick.

Code:
Content visible to verified customers only.
versus this is the normal command

Code:
Content visible to verified customers only.
notice the only differences really is resize versus size and the gravity center with crop which means we take the image from the center.

ImageMagick: Command-line Options

I am showing the command is valid.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 12th, 2009, 01:41 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
Is there any way of changing that line so that landscape images get cropped properly when making a uniform squares thumbnail?
Jan Klerks is offline   Reply With Quote
Old July 12th, 2009, 04:05 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
I am not seeing anything wrong with the line so I am not sure what to tell you there. Seems to fine for me.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 12th, 2009, 07:45 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
I don' t know how I can be more specific when saying that when having the uniform size thumbnail setting on, and having both height and width set at 164 pixels, the images that are cropped from a landscape orientated images are blurry. Unless you find this ones crystal sharp:

Code:
Content visible to verified customers only.
Original file:

Code:
Content visible to verified customers only.
Jan Klerks is offline   Reply With Quote
Old July 13th, 2009, 10:16 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
2253 - ReefTalk Gallery

Looks fine to me when I process it using Photopost on my site with a setting of 164 so maybe your imagemagick needs to be upgraded. Could be a bug in your version of Imagemagick.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 13th, 2009, 09:26 PM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
^ it indeed does, thanks for testing. I do notice however yours takes out a piece of 164 px x 164 px out of the original size without resizing it first, while mine seems to resize the image first and than takes out a squared bit. Is there any other setting related to this that I need to look at?
Jan Klerks is offline   Reply With Quote
Old July 13th, 2009, 09:37 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Not that I am seeing I simply set the uniform size and set it to yes.

I would suspect an issue with your version of mogrify on the server
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 14th, 2009, 07:37 AM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
We installed the latest version of ImageMagick. If ImageMagick was the problem, that doesn't explain why portrait images get cropped and sharpened properly but landscape images do not.

Why does it take out a but from your image and why does it try to take the maximum out of mine? Must be some sort of setting?
Jan Klerks is offline   Reply With Quote
Old July 14th, 2009, 10:53 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Honestly do not know what a but is? Here are my settings

Thumbnail image max width and height in pixels 120

Max allowable image width in pixels 1024

Max allowable image height in pixels 768

Trigger medium graphic height and width 600
An uploaded larger than this will create a medium image of this size.

Photo uploads increment user post count? Yes

Save and display medium and large images? Yes

Quality setting for image resizing/thumbnails? 100

If photo upload width or height exceeds maximums, resize upload down to max dimensions? Yes

Display and extract EXIF information from images? Yes

Maximum multimedia upload size in kB 42000

Degrees to rotate portrait thumbnails? (set to 0 for no rotation) 0
For users of ImageMagick only
Degrees to rotate landscape thumbnails? (set to 0 for no rotation) 0
For users of ImageMagick only
If rotating, long side for mini thumbnail? 0
If rotating your thumbnails, we need to create a mini thumbnail
If rotating, short side for mini thumbnail? 0
If rotating your thumbnails, we need to create a mini thumbnail

Min allowable image width in pixels 0

Min allowable image height in pixels 0


Use Uniform Thumbnails? yes
Can only be used when using IM for imaging.
Uniform thumbnail height? 164

Uniform thumbnail width 164

Enable Flash uploader?
Selects flash uploader is user is registered and flash is installed
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 17th, 2009, 03:50 PM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Location: Sarasota, FL
Posts: 11
Quote:
Originally Posted by Chuck S View Post
Honestly do not know what a but is?
(I think that was supposed to be "bit.")

The issue is this:

Typically, a thumbnail is generated by resizing (shrinking) the entire image first, then cropping as necessary.

However, what PhotoPost/ImageMagick is currently doing is cropping without first resizing.

It seems most likely that this is an issue with the IM thumbnail generation script that PhotoPost currently uses. I can verify that GD2 is generating thumbnails properly, whereas ImageMagick is not.
digichickstaff is offline   Reply With Quote
Old July 17th, 2009, 05:22 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Digi

The cropping uniform thumbnails does work as I showed above. The issue as seen in this thread probally comes down to possibly imagemagick on that specific server. we have no control over someones image processor install. Our imagemagick crop command comes right from the imagemagick site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 17th, 2009, 09:08 PM   #15 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Location: Sarasota, FL
Posts: 11
Quote:
Originally Posted by Jan
I don' t know how I can be more specific when saying that when having the uniform size thumbnail setting on, and having both height and width set at 164 pixels, the images that are cropped from a landscape orientated images are blurry.
I figured out your problem.

It's because the PhotoPost script (the one Chuck mentioned above) first resizes to fit the desired width, then resizes to fit the desired height. Which means that when PhotoPost resizes landscape photos, it's upscaling using this method. (No wonder it's blurry!)

Chuck, I think you'll find the following code to be more graceful (the option flag '^' has been available for this very thing since v.6.3.8-3):

Code:
Content visible to verified customers only.
I've attached some examples for you to compare: 2253thumb2.jpg was generated using the code Chuck posted, while 2253thumb.jpg was generated using the code I've posted here.

To reiterate: the current Uniform Thumbnail script, as applied to landscape-oriented images, shrinks them down too far. It then enlarges the too-small thumbnail before cropping, resulting in a blurry image. The code I've posted here ought to avoid this.
Attached Images
File Type: jpg 2253thumb2.jpg (10.1 KB, 10 views)
File Type: jpg 2253thumb.jpg (14.5 KB, 10 views)
digichickstaff is offline   Reply With Quote
Old July 18th, 2009, 09:23 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
well that does not explain why my site using the default code works fine.

I also see nowhere in our code where we shrink anything smaller than a thumbnail size.

I will test what you have posted though.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 21st, 2009, 05:04 PM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
@ digichickstaff: thanks for thinking along, much appreciated. Where in which script do I change that IM command line?
Jan Klerks is offline   Reply With Quote
Old July 21st, 2009, 05:17 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
image-inc.php is the file that has im commands.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 21st, 2009, 07:32 PM   #19 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 17
I just changed the code and it works beautiful now. Big thanks again at digichickstaff!
Jan Klerks is offline   Reply With Quote
Old July 22nd, 2009, 11:44 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Well thats good to hear but it still cant answer I and dont beleive anyone can answer why the normal code works on my server yet not on yours.

Her line differences replace

-strip -resize

with

-thumbnail

and then

-crop

with

-extent
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use uniform thumbnail feature? skidpics General Discussion 3 May 19th, 2008 06:26 AM
Uniform thumbnails option + remove table under thumbnails imvitaliy Photopost Pro How Do I...? 1 January 11th, 2008 03:47 PM
Thumbnails Blurry MichaelMI ReviewPost How do I...? 12 May 19th, 2007 09:27 AM
Thumbnail blurry angkor408 Photopost Pro Installation & Upgrades 21 December 15th, 2006 10:11 AM


All times are GMT -5. The time now is 12:59 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0