Hi devs,
Currently the image plugin [1] allows us to create image thumbnails by
specifying the image width and/or height in the query string of the
image attachment download URL:
/xwiki/bin/download/Spage/Page/image.jpg?width=100
I propose that we:
(A) Use the image width and/or height (when they are specified in the
image syntax using pixel unit) to resize the image on the server side.
For instance:
[[image:logo.jpg||width="100px"]]
will be linked to
/xwiki/bin/download/Spage/Page/logo.jpg?width=100
and
[[image:logo.jpg||style="height: 50px; width: 70px"]]
will be linked to
/xwiki/bin/download/Spage/Page/logo.jpg?width=70&height=50
The image plugin also accepts a quality parameter that controls the
compression quality when encoding jpeg images. The default value of this
parameter (i.e. when not specified in the URL) is configurable. I
propose we use 0.3 by default, 1 representing the best quality.
(B) Add the ability to limit the image dimensions (preserving aspect
ratio) when the image width and/or height are not specified in the image
syntax (or when they are not using pixel unit). The width and height
limit will be configurable and -1 by default (i.e. no limitation). For
instance:
image:logo.jpg
will be linked to
/xwiki/bin/download/Spage/Page/logo.jpg?width=1024
when width limit is 1024, and to
/xwiki/bin/download/Spage/Page/logo.jpg?width=1024&height=768&keepAspectRatio=true
when width limit is 1024 and height limit is 768. Note that in this case
the image aspect ratio is preserved. The image is resized to best fit
the limits. If the user want to bypass the limit he has to specify the
image width/height in the image syntax.
I'm +1 for both (A) and (B). WDYT?
Thanks,
Marius
[1]
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/…
Hi all
Please excuse this first junk and see first email below. I am sending from my mobile so editing difficult
Gordon
-----Original Message-----
From: users-owner(a)xwiki.org
Sender: users-bounces(a)xwiki.org
Date: Tue, 21 Sep 2010 15:16:47
To: <gordon(a)yilaconsulting.com>
Subject: XWiki Export, Page content as HTML?
You are not allowed to post to this mailing list, and your message has
been automatically rejected. If you think that your messages are
being rejected in error, contact the mailing list owner at
users-owner(a)xwiki.org.
Has anyone ever performed a migration that could give me some advice on
how it's done and if what I asked about below is possible?
I have checked out this:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup
which suggests to backup the database but doesn't give any clue to
Postgresql!
Also is Xwiki content stored in a database or in the /webapps/xwiki
instance??
So if I simply backed up and restored the database and copied the xwiki/
dir across to a different platform the system should work?? Even if
going from Tomcat to Glassfish or so??
Thanks and regards,
Kaya
-------- Original Message --------
Subject: Migrating Xwiki
Date: Fri, 17 Sep 2010 14:16:08 +0300
From: Kaya Saman <kayasaman(a)gmail.com>
To: XWiki Users <users(a)xwiki.org>
Hi,
I'm wondering if it's possible to migrate Xwiki from one system to another??
I currently run Xwiki on a FreeBSD 8.0 RELEASE x64 platform with 4GB RAM
in a dedicated FreeBSD Jail, however I'm having an issue with Java
spinning up the CPU to 100% rendering Xwiki inoperable!
If I migrate it would be from FreeBSD to either a dedicated FreeBSD
system or an OpenSolaris based system on Nexenta.
Currently I run Tomcat6 coupled with Postgresql, but would migrate to
Glassfish and MySQL.
Is it just a matter of backup the Xwiki from the web GUI then restore
under Glassfish and convert database from Postgresql to MySQL then
attach at other end?
Or can I just simply dump the /webapps/xwiki folder into Glassfish or
another instance of Tomcat?
Thanks for any advice!!
Regards,
Kaya
Hi,
Just done a fresh install of XEM2.4 and I encounter the following problem.
In the templatexe wiki, it's impossible to add a new group or a new user
(the Add button do nothing).
If I edit the objects of an existing group (XWikiAllGroup for example), a
warning is displayed :
"Some objects from this document contain deprecated properties which were
deleted from their respective classes."
In fact, I detected that the *XWikiGroups and XWikiUsers classes are not
defined* (they do not exist) in this templatexe wiki.
In the main wiki, all is ok (and the XWikiGroups and Users classes are well
defined).
Nothing in the xwiki.log.
Do you have any idea to help me ?
Best regards,
Maxime Mathieu
Hi all,
I missed something about XWiki users object visibility.
I put in a wiki page the velocity script for implementing the Live table sample with XWikiUser objects.
It works if I log in with Admin rights.
If I log in with a user without Admin rights (Programming rights are ok) the live table shows no elements.
Thank you a lot,
Andrea
Hi,
I've done a installation on my localhost (Windows XP machine) of XE
2.1.1, Tomcat 6 and MySQL 5.1.
After this i wrote a bad hql query and executed it which brought MySQL
to spyke the CPU usage to 100% and even more rendering both the
localhost and database unusable.
{{velocity}}
#set($badhql = ", BaseObject obj, StringProperty stringprop,
LargeStringProperty largestringprop where (doc.name like '%$text%' or
doc.content like '%$text%') or (obj.name=doc.fullName and
stringprop.id.id=obj.id and stringprop.value like '%$text%') or
(obj.name=doc.fullName and largestringprop.id.id=obj.id and
largestringprop.value like '%$text%')")
#set($ok = $list.addAll(0, $xwiki.searchDocuments("$badhql")))
{{include document="XWiki.Results"/}}
{{/velocity}}
The bad thing is that $xwiki.searchDocuments brought me to this state
(no programming rights.).
Now my question is: Are there any remedies against this? MySQL
configuration statements that prevent this kind of behaviour?
--
Flavius Olaru
Hi XWiki people,
I need a "semantic" way to edit xml data. This is a project that could consume
a very large portion of my future time, but in the near term I'm looking for a
way to get this typed data into a wiki format so that the object graph can be
clicked through and offsite links can be managed.
First, I need to be able to have nested types. That is, a class has a field,
the type for which is a class I have defined elsewhere. I don't see a way to
do this in XWiki. Am I missing something? Seems like a typing system is
incomplete without being able to have classes have attributes of defined
types.
Travis
Hello, All.
I am trying to set up an xwiki/tomcat(5) installation that is proxied behind
nginx (httpd).
I was working with 2.4, but I am currently trying 2.5 snapshot
20100917.044441-172.
I've got it all working internally, the the proxies and xwiki redirects work
externally.
But when I try to edit a page, I get 2 javascript errors : (I got 3 errors
with 2.4)
Z is undefined in prototype.js : 1877
and
Permission denied for <external host> to get property Window.document from
<internal host:port> at http://<external
host>/xwiki/resources/js/xwiki/wysiwyg/xwe/2ED0D1BCD0DB002FD3C0404AF6E0AAA3.cache.html
Don't know if this is nginx configuration or xwiki issue. If anyone has
been successful running behind nginx I would love to hear any tips. I'm
rather new to both.
thanks a lot,
Linus
--
View this message in context: http://xwiki.475771.n2.nabble.com/edit-fails-with-xwiki-tomcat-proxy-from-n…
Sent from the XWiki- Users mailing list archive at Nabble.com.