Image resizing problem
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
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
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
https://www.evolutionm.net/registry/...de.php?vid=904
and it looks like pictures in his garage profile aren't resizing properly either
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
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






