Keyword

Gallery resize source images

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 3 months ago - 6 years 3 months ago #168704 by Uzi
Gallery resize source images was created by Uzi
Hi,

I have some trouble getting this to work. I want the zip image files that you can add via gallery to resize the source images on upload. I think it's in this piece of code:
$imageDir = $savepath.'/'.$row->id;
$galleryDir = opendir($imageDir);
while ($filename = readdir($galleryDir))
{
	if ($filename != "." && $filename != "..")
	{
		$file = str_replace(" ", "_", $filename);
		$safefilename = JFile::makeSafe($file);
		rename($imageDir.'/'.$filename, $imageDir.'/'.$safefilename);
	}
}
closedir($galleryDir);
$row->gallery = '{gallery}'.$row->id.'{/gallery}';


But how can I resize it via the class.upload?
Last edit: 6 years 3 months ago by Uzi.

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 3 months ago #168724 by Uzi
Replied by Uzi on topic Gallery resize source images
Nobody has an idea?

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 2 months ago #168776 by Uzi
Replied by Uzi on topic Gallery resize source images
I want to use the available class.upload, but I don't know how to covert the code to use that class.upload (because I don't have an actual file?) Anybody has an idea?

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

More
6 years 2 months ago #168788 by JoomlaWorks
Replied by JoomlaWorks on topic Gallery resize source images
What you ask is out of the scope of the free support we provide here. Not to mention you'd hack core K2 files to do it...

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

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 2 months ago #169303 by Uzi
Replied by Uzi on topic Gallery resize source images
Krikor helped me before with hacking the core. Very cool guy.

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


Powered by Kunena Forum