Keyword

K2 image resize with ImageMagic?

  • Mika Knuutila
  • Mika Knuutila's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 weeks ago - 9 years 3 weeks ago #142558 by Mika Knuutila
K2 image resize with ImageMagic? was created by Mika Knuutila
I have problem with K2 image resize which use PHP's GD Library. That library don't understand Color Profiles. My page is for photographing so colors need to be accurate.

This is before:

And this is after I selected it to K2 item image (I used 100% quality):

Is there any change to get K2 use ImageMagic which supports Color Profiles?

Or how can I upload different sizes (XS, S, M, L, XL) images straight that K2 can use them?

Thanks!
Last edit: 9 years 3 weeks ago by Mika Knuutila.

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #142561 by Joe Campbell
Replied by Joe Campbell on topic K2 ruins my image colors
Hello Mika,

All images uploaded through K2 (other than the via the K2 Media Manager) is processed resulting in a change in:

- file name
- file size
- compression
- possibly dimensions (depending on what options you select)

To avoid this you can use image type extra fields. Please view my previous post that further explains:
www.joomlaworks.net/forum/k2-en/40376-solved-keeping-orginal-names-in-my-images#141480

I hope this helps,

Joe Campbell

Please Log in or Create an account to join the conversation.

  • Mika Knuutila
  • Mika Knuutila's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 weeks ago #142565 by Mika Knuutila
Replied by Mika Knuutila on topic K2 ruins my image colors

Joseph wrote: Hello Mika,

All images uploaded through K2 (other than the via the K2 Media Manager) is processed resulting in a change in:

- file name
- file size
- compression
- possibly dimensions (depending on what options you select)

To avoid this you can use image type extra fields. Please view my previous post that further explains:
www.joomlaworks.net/forum/k2-en/40376-solved-keeping-orginal-names-in-my-images#141480

I hope this helps,

Joe Campbell


Thanks! But all of those changes is welcome, but not that it change picture color temperature or something. I don't fully understand your coding example...

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #142566 by Joe Campbell
Replied by Joe Campbell on topic K2 ruins my image colors
Perhaps you should try reaching out Kannan Naidu Venugopal in regards to the plugin he spoke of (that way you would not need to modify your code):
www.joomlaworks.net/forum/k2-en/40376-solved-keeping-orginal-names-in-my-images#142005

Please Log in or Create an account to join the conversation.

  • Mika Knuutila
  • Mika Knuutila's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 weeks ago #142731 by Mika Knuutila
Replied by Mika Knuutila on topic K2 ruins my image colors
Any more ideas without need to touch code or with good instructions?

Please Log in or Create an account to join the conversation.

  • Mika Knuutila
  • Mika Knuutila's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 weeks ago #142734 by Mika Knuutila
Replied by Mika Knuutila on topic K2 ruins my image colors
It's looks like the problem is PHP's GD Library and picture Color Profile. Is there any change to use ImageMagic? My service provider recommended that.

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #142735 by Joe Campbell
Replied by Joe Campbell on topic K2 image resize with ImageMagic?
Hi Mika,

The non-code alternative is to use FTP or cPanel File Manager to access your images. Basically, you would use the follow steps for each image:

1) From the frontend of your website, right click and save each item image you want displayed optimized
2) Using your photo editing software (e.g. Photoshop) resave/replace each image using the same K2 file name to your computer
for example - /media/k2/items/cache/ea457adccaa9e569cff05de9b4f3b04d_XL.jpg
3) Re-upload each image to the K2 media directory (/media/k2/items/cache)

So basically, you letting K2 process your images then going back and replacing the images with optimized ones. It is a time consuming process but does not require any coding (per your request). In fact, It was the process I planned on using until I full embraced utilizing extra fields to display ALL of my images.

Note: if desired, you can resize each additional/smaller size image as needed utilizing the same process.

I hope this helps,

Joe Campbell

Please Log in or Create an account to join the conversation.

  • Mika Knuutila
  • Mika Knuutila's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 weeks ago #142737 by Mika Knuutila
Replied by Mika Knuutila on topic K2 image resize with ImageMagic?

Joseph wrote: Hi Mika,

The non-code alternative is to use FTP or cPanel File Manager to access your images. Basically, you would use the follow steps for each image:

1) From the frontend of your website, right click and save each item image you want displayed optimized
2) Using your photo editing software (e.g. Photoshop) resave/replace each image using the same K2 file name to your computer
for example - /media/k2/items/cache/ea457adccaa9e569cff05de9b4f3b04d_XL.jpg
3) Re-upload each image to the K2 media directory (/media/k2/items/cache)

So basically, you letting K2 process your images then going back and replacing the images with optimized ones. It is a time consuming process but does not require any coding (per your request). In fact, It was the process I planned on using until I full embraced utilizing extra fields to display ALL of my images.

Note: if desired, you can resize each additional/smaller size image as needed utilizing the same process.

I hope this helps,

Joe Campbell


I thought that already, but requires too much work. But thanks anyway :)

Please Log in or Create an account to join the conversation.

  • Mika Knuutila
  • Mika Knuutila's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 weeks ago #142749 by Mika Knuutila
Replied by Mika Knuutila on topic K2 image resize with ImageMagic?
Looks like K2 V3 have ImageMagick option. Nice! Really hope it come out soon! :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 weeks ago #142752 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 image resize with ImageMagic?
You can use an extrafield as an image if you want to use your images as is.
Joseph has posted some really interested tutorials/ links on that www.joomlaworks.net/forum/profile/65438-joseph

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum