HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Resizieing attached images not saveing.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#76480 (In Topic #15781)
Avatar

Honoured member

Hello i am having issues adding and editing images to comcode pages. Below are some questions as well as the difficulties I'm having. If anyone could answer some or all of these, it would be much appreciated.

1: First of all I'm confused to which attachment type to use, so far "island" attachments have not worked as they force an attachment box around the image. When i use inline it seems to the job, but i do not know the difference between the two besides one has the box and the other doesn't.

2: I am unable to resize the image, thumb nail or full size, once its embedded in the page and i edit it (with the transform box) it does not retain my changes once saved. It always displays full size (within the content area's width) or as a thumbnail that I can't make larger. How do i properly go about resizing an image on the page?

3: Are there any add-on's for OCportal to improve the image handling aspect of comcode pages?
Back to the top
 
Posted
Rating:
#76510
Avatar

Hi,

1- you spotted the difference, it's just the borders. We'll clarify that for the next release.

2- I'm not sure what the 'transform box' is actually, I couldn't find a way to resize at all when I tried just now. It's not currently supported I'm afraid, but I've added a tracker topic about it:
0000307: Better image editing - ocPortal feature tracker

3- There is the 'Aviary' addon, that lets you use the online Aviary image editing service immediately after uploading the file.

I'd like to improve this stuff too, but it's a bit tricky because of things like how some of the more advanced ocPortal attachment features work. It can be done, but it'll take some hard work.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76514
Avatar

Honoured member

Well i am attaching an image that shows the transform box i speak of. When i click on the image i get a transform tool as if i was in any image editor, i can resize the image, but it doesn't stick. Strangely looking at the source it DOSE accept the size changes, they simply don't display. (i can trasform the image in this posts's edit window as well.)



I find it strange i can transform it at all if the functions not there…

Code

<div style="text-align: center">
                <img alt="" class="no_alpha attachment_img" id="te_23983_11777" src="http://[REMOVED]/data/attachment.php?id=125&amp;keep_session=3702736&amp;thumb=0&amp;keep_session=3702736&amp;for_session=9a2120f29a71f4907af590b5da4e2b82" style="width: 181px; height: 92px;" title="" /></div>
Back to the top
 
Posted
Rating:
#76515
Avatar

Ah, I think that transform feature might not be on Google Chrome which is why I couldn't see it just now.

The editor is CKEditor, but it ties into Comcode which has to track the attachments, vet HTML for security, etc – so what the editor makes gets heavily sanitised.

Try disabling the "Convert XHTML to Comcode" option, that might let it work for admins, as it will stop the back-conversion to HTML.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76516
Avatar

Honoured member

Where exactly is that option? I'm still quite new to OcPortal so i might be blind with it right in front of my face, and still not see it.
Back to the top
 
Posted
Rating:
#76517
Avatar

Put in quotes in the search box in the top right of the Admin Zone, should take you to it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76518
Avatar

Honoured member

Thanks i'll look into it, and one unrelated question… My Ocportal is quite sluggish and slow, long hesitation/pause's between loading pages, and saving them.

The server host im using is top of the line so i have little faith its the server itself. Are there any setting that need to be optimized for quick and fluid load-times? I have looked at cache but unsure which to use.

The slowdowns and lag times are on every page, admin-zone or not.
Back to the top
 
Posted
Rating:
#76520
Avatar

Honoured member

The Disable "Convert XHTML to Comcode" option seems to work 100%. My transformed images are retaining their re-size.
Back to the top
 
Posted
Rating:
#76524
Avatar

Hi,

Please file a support ticket with FTP login details, and I will run some audits on the server.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76525
Avatar

(free ticket, just suggesting this so others don't see your login)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76535
Avatar

Honoured member

I'll have the info to you shortly, since its a muti host environment i had to set up a new ftp account for this specific website, and thanks for looking into this.
Back to the top
 
Posted
Rating:
#76539
Avatar

Honoured member

A ticket has been made.
Back to the top
 
Posted
Rating:
#76540
Avatar

Hi,

Looking on here, I can see the disk where the website files is mounted from a remote computer. This will mean there will be a much higher level of latency doing disk access than normal.
We've very recently noticed (just 2 weeks ago) that disk IO can become a bottleneck on ocPortal (it hasn't been optimised for these environments, the assumption has been a fast local hard disk). Since then we've made extensive changes which will be in the next version.

So fingers crossed, this will resolve itself.

I can't be exactly sure as due to server restrictions I couldn't run the full set of performance commands from OcCLE I normally would (uptime, iostat, analysing /proc) but I think the small amount of evidence I do have points strongly to the disk latency case.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: