Notices
Site Feedback / Suggestions If you have any suggestions or want to see something voice your opinion in here.

Image resizing problem

Thread Tools
 
Search this Thread
 
Old Jan 14, 2005 | 08:03 AM
  #1  
neilschelly's Avatar
Thread Starter
Evolved Member
iTrader: (2)
 
Joined: Feb 2003
Posts: 986
Likes: 0
From: Merrimack, NH
Image resizing problem

Some random pictures on the home page came up for me from this profile:
https://www.evolutionm.net/registry/...de.php?vid=904

Many of the thumbnail versions of these images weren't properly resized. I'm guessing the resizing is done with the libmagick (imagemagick) libraries. If that's the case, I have seen situations where it doesn't resize images properly, seemingly images encoded by particular models of digital cameras. So it's possible that's the issue. Anyway, re-encoding them works fine, so open them in something, save them again, and even just use imagemagick to do that and it works fine after that.

Anyway, with these random profile images at full size, I'm sure you can imagine how screwed up the home page looks.
-N
Reply
Old Jan 14, 2005 | 08:04 AM
  #2  
OZLancerlunatic's Avatar
Evolved Member
iTrader: (10)
 
Joined: Jan 2002
Posts: 592
Likes: 0
From: BEANTOWN FOREVER
home page looks ok here.
Reply
Old Jan 14, 2005 | 08:06 AM
  #3  
twardnw's Avatar
Evolved Member
20 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (4)
 
Joined: Sep 2003
Posts: 1,679
Likes: 0
From: Vancouver, WA
I've had this happen on occasion to me. Unpredictable and I cannot recreate it on demand.
Reply
Old Jan 30, 2005 | 11:24 PM
  #4  
twardnw's Avatar
Evolved Member
20 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (4)
 
Joined: Sep 2003
Posts: 1,679
Likes: 0
From: Vancouver, WA
I think it's kinda the same problem, whenever this guy's main pic shows up in the 'random rides' it's way too big

https://www.evolutionm.net/registry/...de.php?vid=904

and it looks like pictures in his garage profile aren't resizing properly either
Reply
Old Jan 31, 2005 | 05:25 PM
  #5  
neilschelly's Avatar
Thread Starter
Evolved Member
iTrader: (2)
 
Joined: Feb 2003
Posts: 986
Likes: 0
From: Merrimack, NH
Yeah, you can't recreate it except by refreshing the home page until someone's un-resized images come up and that's random. But the images by at least that one person I linked to were all the not resizing properly.

As I said, I found it possible to use mogrify from the imagemagick distribution to make some other negligible change, or even just change the format to jpg, as a kind of re-encoding it step. Then, the new file was fine for modifying. Or opening it in any other graphics program and resaving it. After that, I was able to resize it fine with the imagemagick tools/libraries.

I'm guessing you could adjust the code that accepts uploaded images so that it checks that the size of the resized image really is smaller (using idenitfy from command line or some library call) and then using "mogrify -format jpg" and resizing it again if it didn't resize proprerly the first time.
-N
Reply




All times are GMT -7. The time now is 01:09 PM.